-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Current repo prints images with inverted colors #408
Comments
For now, I just did a quick fix it by reversing the output of the .map() function with .map( (p) => p === false )
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to get the current repo running, everything works well except that images (including qrimage) white pixels are printed as black and black ones as white, I guess there's a issue with the function that converts pixels to black or white?
https://github.com/song940/node-escpos/blob/v3/packages/printer/src/image.ts#L26
this is the old code:
node-escpos/packages/printer/image.js
Line 30 in ad1cade
I don't think there's an issue with my printer because the old version on npm prints images well
The text was updated successfully, but these errors were encountered: