3 ms·
My receipt printer library[0] uses dithering for images since the printers are black and white but fairly high resolution. It looks pretty decent [1], much bett
by lukevp 6y ago
My receipt printer library[0] uses dithering for images since the printers are black and white but fairly high resolution. It looks pretty decent [1], much better than a plain black and white conversion. I learned about dithering while implementing this library, and it’s a great technique! I originally implemented a black and white filter and then Floyd-steinberg dither natively in c# but then ended up using a library for it since we needed image transforms as well.
[0]: https://github.com/lukevp/ESC-POS-.NET https://github.com/lukevp/ESC-POS-.NET
[1]: https://user-images.githubusercontent.com/59696671/106924665-4a94bf80-66dd-11eb-93a5-992799a77712.jpg https://user-images.githubusercontent.com/59696671/106924665...
- sitkack 6y agoI got you 123 Fake St! That is a pretty sweet printer. Is it the Adafruit one?
- lukevp 6y agoI use an Epson printer[0] for developing the library, but this print out was from a contributor who’s trying to add support for the CUSTOM brand of receipt printers. If you have the Adafruit, please give the lib a try and let me know! It works on raspberry pis too. [0]: https://www.amazon.com/Epson-TM-T20II-Direct-Thermal-Printer/dp/B00HEMOOE0 https://www.amazon.com/Epson-TM-T20II-Direct-Thermal-Printer...
- zimpenfish 6y agoAh, that 3rd image reminds me of trying to send images to my ESC-POS darling. I think I've got an entire roll of garbage from Linux Bluetooth glitches corrupting the output (macOS works 100% reliably on the same binary stream.) Will definitely try this library.
- lukevp 6y agoAwesome, please do try it and let us know how it goes. As for the garbage, gotta have the hand on that power button so you can flip it off quickly when it starts scrolling garbage, it can really burn through paper quick!