Quickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers.
make
Note that you'll need libpng
installed.
png2escpos v0.2 - converts PNGs into Epson ESC/POS format.
Copyright (c) 2015 The Working Group, Inc., incorporating
modifications by Michael Billington
Usage: ./png2escpos <file.png>
Binary output in ESC/POS format will be written directly to stdout.
You can pipe this output directly into an Epson printer with:
Linux: ./png2escpos <file.png> > /dev/usb/lp0
Mac OS X: ./png2escpos <file.png> | lpr -P NAME_OF_PRINTER
Alternative converters:
- petrkutalek/png2pos - Can perform dithering for graphics that are not pure black and white.
Libraries for generating more complex output:
- mike42/escpos-php - PHP library
- python-escpos/python-escpos - Python library
Other:
- receipt-print-hq/escpos-tools - Parser which can perform the opposite transformation.
(C) 2015 The Working Group Inc., incorporating modifications by Michael Billington < [email protected] >
Using the MIT License as described in
the LICENSE
file.