{"id":18427696,"url":"https://github.com/mugli/png2escpos","last_synced_at":"2026-03-09T19:02:05.818Z","repository":{"id":57515680,"uuid":"201646785","full_name":"mugli/png2escpos","owner":"mugli","description":"Quickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers. Written in Go/Golang","archived":false,"fork":false,"pushed_at":"2019-09-07T15:21:30.000Z","size":382,"stargazers_count":32,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:40:55.771Z","etag":null,"topics":["converter","epson","escpos","escpos-printer","format-converter","go","golang","png","pos-printer-driver","pos-printers","printer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mugli.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}},"created_at":"2019-08-10T15:15:47.000Z","updated_at":"2024-03-04T16:00:59.000Z","dependencies_parsed_at":"2022-08-28T16:51:11.160Z","dependency_job_id":null,"html_url":"https://github.com/mugli/png2escpos","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mugli%2Fpng2escpos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mugli%2Fpng2escpos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mugli%2Fpng2escpos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mugli%2Fpng2escpos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mugli","download_url":"https://codeload.github.com/mugli/png2escpos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223286383,"owners_count":17120000,"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":["converter","epson","escpos","escpos-printer","format-converter","go","golang","png","pos-printer-driver","pos-printers","printer"],"created_at":"2024-11-06T05:11:32.796Z","updated_at":"2026-03-09T19:02:05.611Z","avatar_url":"https://github.com/mugli.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# png2escpos\n\nQuickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers.\n\nThis utility removes transparency from image, makes it grayscale and then encodes in ESC/POS format.\n\nWritten in pure Go/Golang.\n\n---\n\n## Installation\n\nDownload binary from [release tab](https://github.com/mugli/png2escpos/releases).\n\n---\n\n## Usage\n\n```\n./png2escpos \u003cfilename.png\u003e:\n\tBinary output in ESC/POS format will be written directly to stdout.\n\n\tYou can pipe this output directly into an Epson compatible thermal printer with:\n\t\tLinux:\t./png2escpos \u003cfile.png\u003e \u003e /dev/usb/lp0\n\t\tmacOS:\t./png2escpos \u003cfile.png\u003e | lpr -P NAME_OF_PRINTER\n\n\t\tOr, if you have a network printer listening at 192.168.1.100:9100\n\t\t\tyou can use socat to forward from stdin to network like this:\n\n\t\t\tLinux:\t./png2escpos \u003cfile.png\u003e | socat STDIN TCP4:192.168.1.100:9100\n\t\t\tmacOS:\t./png2escpos \u003cfile.png\u003e | socat STDIN TCP4:192.168.1.100:9100\n\n\t\t\t(you may have to install socat on macOS with brew install socat first)\n\nOther commands:\n\n\thelp, --help, -h:\n\t\tShows this message\n```\n\n---\n\n## Acknowledgement\n\n[NielsLeenheer/EscPosEncoder](https://github.com/NielsLeenheer/EscPosEncoder) - For the rasterization and ESC/POS encoding in JavaScript.\n\n[twg/png2escpos](https://github.com/twg/png2escpos) - For CLI usage pattern.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmugli%2Fpng2escpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmugli%2Fpng2escpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmugli%2Fpng2escpos/lists"}