-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logo support on printed receipts #156
Comments
@sde1000 I attempted this yesterday evening and managed to get something working by using Testing that as PDF-to-window-from-till required a small adjustment to the Should the other printer drivers 'just work', or is PDF a special-case? And in either case: should I follow-up with a pull request? (I'll check with some EMF folks whether it's OK to use the EMF 2024 logo before that if so, to be on the safe side) |
They are all "special-case", unfortunately — although at the moment PDF and ESC/POS are the only two cases. Are you converting to a PIL Image to send into reportlab? If so, that's a good step towards working with ESC/POS — there is suitable code in python-escpos which I currently don't depend on but possibly ought to. |
Ok. Drats :)
I'm not sure, to be honest - it's possible that It's possible that my plan to read the native SVG logo as input is making this more complicated than it needs to be; even so, the code for the PDF implementation is fairly minimal (2 lines of |
Although that makes it sound easy: alignment/formatting is also required to make this look sensible, and I haven't implemented anything to do that yet (currently studying the text-based alignment code). |
Ah yes, something will have to rasterise the SVG to output it as esc/pos. Maybe easier to start with a PNG? |
...or perhaps even BMP? I've learned of the existence of So now I'm thinking about trying to borrow and adapt some of the existing emulated QR raster code to handle black-and-white bitmap images. |
That could work! It would probably be simpler than the existing raster QR printing code — that does its own interleaving to get a good quality print on a dot-matrix printer. Printing an image on a thermal printer doesn't need that. |
While developing #282 I noticed in the Epson ESC/P reference docs (I think Epson own the |
The Cybar at EMF want to be able to print logos on receipts.
The text was updated successfully, but these errors were encountered: