Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mugli/png2escpos
Quickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers. Written in Go/Golang
https://github.com/mugli/png2escpos
converter epson escpos escpos-printer format-converter go golang png pos-printer-driver pos-printers printer
Last synced: 2 months ago
JSON representation
Quickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers. Written in Go/Golang
- Host: GitHub
- URL: https://github.com/mugli/png2escpos
- Owner: mugli
- License: mit
- Created: 2019-08-10T15:15:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T15:21:30.000Z (over 5 years ago)
- Last Synced: 2024-06-20T17:40:55.771Z (7 months ago)
- Topics: converter, epson, escpos, escpos-printer, format-converter, go, golang, png, pos-printer-driver, pos-printers, printer
- Language: Go
- Homepage:
- Size: 373 KB
- Stars: 32
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# png2escpos
Quickly convert PNG files to ESC/POS format, for printing on Epson thermal point-of-sale printers.
This utility removes transparency from image, makes it grayscale and then encodes in ESC/POS format.
Written in pure Go/Golang.
---
## Installation
Download binary from [release tab](https://github.com/mugli/png2escpos/releases).
---
## Usage
```
./png2escpos :
Binary output in ESC/POS format will be written directly to stdout.You can pipe this output directly into an Epson compatible thermal printer with:
Linux: ./png2escpos > /dev/usb/lp0
macOS: ./png2escpos | lpr -P NAME_OF_PRINTEROr, if you have a network printer listening at 192.168.1.100:9100
you can use socat to forward from stdin to network like this:Linux: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100
macOS: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100(you may have to install socat on macOS with brew install socat first)
Other commands:
help, --help, -h:
Shows this message
```---
## Acknowledgement
[NielsLeenheer/EscPosEncoder](https://github.com/NielsLeenheer/EscPosEncoder) - For the rasterization and ESC/POS encoding in JavaScript.
[twg/png2escpos](https://github.com/twg/png2escpos) - For CLI usage pattern.
---
## License
MIT