kenshaw / escpos

A simple Golang package for handling Epson ESC-POS printer commands. It also provides a simple TM-Intelligent/ePOS-XML server implementation.
MIT License
241 stars 80 forks source link

Image format #1

Open playaer opened 8 years ago

playaer commented 8 years ago

Hi. I tried to print image but something is wrong, it prints too-many characters. Which image type I must pass to p.Image()?

kenshaw commented 8 years ago

The implementation of the image printing was never finished. I was porting it from a PHP library escpos lib, but never got around to printing it. The quality of the images that are printed (at least on the e-pos printers I have) aren't very good quality anyways.

playaer commented 8 years ago

Ok, thank you, I will try to do it

kenshaw commented 8 years ago

For what it's worth, I've learned a hell of a lot about Go since I wrote the original escpos code. It would be fairly easy to integrate the C code from this repository: png2pos. You might want to look into doing that. I would do it myself, but I have no immediate need to print images via an escpos printer/server at the moment.