We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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: https://github.com/song940/node-escpos/blob/ad1cade11f616f20bb112b3d5ecdfee85e77aff4/packages/printer/image.js#L30
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:
For now, I just did a quick fix it by reversing the output of the .map() function with .map( (p) => p === false )
this.data = rgbaData.map( ([r, g, b, a]) => a != 0 && r > 200 && g > 200 && b > 200, ).map( (p) => p === false )
Sorry, something went wrong.
No branches or pull requests
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: https://github.com/song940/node-escpos/blob/ad1cade11f616f20bb112b3d5ecdfee85e77aff4/packages/printer/image.js#L30
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: