{"id":13622156,"url":"https://github.com/Jojodicus/qr2eascii","last_synced_at":"2025-04-15T05:33:45.394Z","repository":{"id":130415913,"uuid":"429909726","full_name":"Jojodicus/qr2eascii","owner":"Jojodicus","description":"Generate/convert a QR-code in E-ASCII-art","archived":false,"fork":false,"pushed_at":"2024-04-02T13:24:18.000Z","size":21,"stargazers_count":29,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-08T09:41:48.523Z","etag":null,"topics":["ascii","ascii-art","image","image-processing","jpeg","jpg","png","python","python-script","python3","qr","qr-code","qr-codes","qr-generator","qrcode","qrcode-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jojodicus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-19T19:18:31.000Z","updated_at":"2024-11-07T10:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"474f743b-5de4-411b-b9c3-8070459d08c6","html_url":"https://github.com/Jojodicus/qr2eascii","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jojodicus%2Fqr2eascii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jojodicus%2Fqr2eascii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jojodicus%2Fqr2eascii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jojodicus%2Fqr2eascii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jojodicus","download_url":"https://codeload.github.com/Jojodicus/qr2eascii/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249015967,"owners_count":21198824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","ascii-art","image","image-processing","jpeg","jpg","png","python","python-script","python3","qr","qr-code","qr-codes","qr-generator","qrcode","qrcode-generator"],"created_at":"2024-08-01T21:01:14.948Z","updated_at":"2025-04-15T05:33:45.116Z","avatar_url":"https://github.com/Jojodicus.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# QR-Code to E-ASCII\nGenerate a QR-code in E-ASCII-art using the black square symbol (█, U+2588, Alt+219). As input either an already generated picture of a QR-code or text can be used.\n\n## Requirements\n- [numpy](https://numpy.org)\n- [pillow](https://pillow.readthedocs.io)\n- [qrcode](https://pypi.org/project/qrcode/)\n\n`$ (sudo) pip install -r requirements.txt`\n\n## Usage\n``py convert.py [-h] [-i INPUT] [-o OUTPUT] [--invert] [-w WHITE] [-b BLACK] [-v VERSION] [--border BORDER] [-c {L,M,Q,H}]``\n- ``-h``, ``--help``: Show help message.\n- ``-i INPUT``: Input file path or text input (if not a valid path)\n- ``-o OUTPUT``: Output file.\n- ``--invert``: Invert colors.\n- ``-w WHITE``: Characters for white pixel (default \"██\")\n- ``-b BLACK``: Characters for black pixel (default \"\u0026nbsp;\u0026nbsp;\")\n- ``-v VERSION``: QR-Code version (default 1)\n- ``--border BORDER``: Border size of generated QR-Code (default 1)\n- ``-c [L,M,Q,H]``: Error correction mode (default M)\n\nIf no input file is given, the program reads the data from stdin.\n\n## Notes when converting images\nThe conversion of images will only work reliably on pure black/white QR-codes with square eyes and dots. The border around the code should also be uniform for the scaling to work correctly. Codes that work can be generated with websites like [qr-code-generator.com](https://qr-code-generator.com/).\n\n---\n\n## Example\n### From text\n```\npy convert.py --invert\n\u003e Enter data to encode: github.com/jojodicus\n```\nyields:\n```\n██████████████████████████████████████████████████████\n██              ████      ██    ██████              ██\n██  ██████████  ██  ██  ██    ████  ██  ██████████  ██\n██  ██      ██  ██      ██████    ████  ██      ██  ██\n██  ██      ██  ██  ████████  ██    ██  ██      ██  ██\n██  ██      ██  ████  ██  ████  ██  ██  ██      ██  ██\n██  ██████████  ████████  ████  ██████  ██████████  ██\n██              ██  ██  ██  ██  ██  ██              ██\n██████████████████      ██  ██  ██  ██████████████████\n██  ██████████  ██  ██            ██    ████      ████\n██  ██    ██  ████████    ██████  ██████          ████\n██  ████        ██████  ████  ██      ██      ██    ██\n██  ██        ██  ██  ████████                ██    ██\n████████  ████    ██  ██████    ██        ██  ██  ████\n██      ██████████████  ██    ██    ████  ████  ██████\n██  ██              ████████      ██  ██      ██    ██\n██  ████      ██    ██████            ████        ████\n██  ██  ██  ██  ██████  ██  ██  ██          ██      ██\n██████████████████  ██  ██████████  ██████    ████████\n██              ██████████      ██  ██  ██  ██  ██  ██\n██  ██████████  ██████    ████      ██████    ████  ██\n██  ██      ██  ██████    ██████                    ██\n██  ██      ██  ████  ████    ██  ██    ██████      ██\n██  ██      ██  ████    ████    ██  ████  ██    ██  ██\n██  ██████████  ████    ██    ████  ██████  ██████  ██\n██              ██  ████      ████    ██████  ████  ██\n██████████████████████████████████████████████████████\n```\n---\n\n```\npy convert.py -i example/qr-code.png -o example/qr-code.txt --invert\n```\n\nsee [example/qr-code.png](example/qr-code.png) and [example/qr-code.txt](example/qr-code.txt)\n\n![](example/qr-code.png)\n\nyields:\n\n```\n████████████████████████████████████████████████████████████████\n████████████████████████████████████████████████████████████████\n████              ██████████  ██    ██  ██████              ████\n████  ██████████  ██    ██  ██  ██    ████████  ██████████  ████\n████  ██      ██  ██  ██          ██████  ████  ██      ██  ████\n████  ██      ██  ██    ████  ████    ██    ██  ██      ██  ████\n████  ██      ██  ████  ██    ██    ██      ██  ██      ██  ████\n████  ██████████  ████      ████  ████████  ██  ██████████  ████\n████              ██  ██  ██  ████  ██  ██  ██              ████\n████████████████████  ██████████    ██      ████████████████████\n████  ██████████  ██      ████████    ██  ██    ████      ██████\n████      ██  ██████  ██        ██        ██  ██    ██    ██████\n████    ████████    ████████        ██  ██████████  ████████████\n████████  ████  ████    ██  ██  ████████  ██  ██████  ██████████\n██████████        ██████  ██        ██████  ██    ████████  ████\n████  ████  ██████    ████  ██████  ██  ██  ██      ████    ████\n████    ██████  ██  ██  ████████  ██████  ██████    ██  ██  ████\n██████████  ████  ████        ████    ██  ██  ██  ██    ████████\n████  ████████  ██    ██    ██  ████████  ████      ██      ████\n████    ██        ██    ██  ████  ██  ██  ████████    ████  ████\n████  ████████████  ████    ██  ██████████  ██  ████████████████\n████  ██████        ██      ████  ██  ██            ██      ████\n████████████████████  ██  ██  ████████████  ██████    ██████████\n████              ████  ████  ██████        ██  ██      ████████\n████  ██████████  ████  ██    ██    ████    ██████  ████████████\n████  ██      ██  ████  ██  ██  ████                  ██████████\n████  ██      ██  ██████    ██  ████          ██████      ██████\n████  ██      ██  ████  ████          ██                  ██████\n████  ██████████  ████  ████  ████      ██████    ██    ██  ████\n████              ██        ████  ██████  ████      ██  ████████\n████████████████████████████████████████████████████████████████\n████████████████████████████████████████████████████████████████\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJojodicus%2Fqr2eascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJojodicus%2Fqr2eascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJojodicus%2Fqr2eascii/lists"}