Skip to content
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

Wrong image on Ticket - horizontal white lines #55

Open
TillMoss opened this issue Apr 22, 2022 · 3 comments
Open

Wrong image on Ticket - horizontal white lines #55

TillMoss opened this issue Apr 22, 2022 · 3 comments

Comments

@TillMoss
Copy link

When I print an image on ticket I get this result. How can I solve this?
IMG_9357 (1)

@TillMoss TillMoss changed the title Wrong image on Ticket Wrong image on Ticket - horizontal white lines Apr 22, 2022
@smalldevcloud
Copy link

With the image with smaller size you're gettin' the same result?

@TillMoss
Copy link
Author

TillMoss commented Apr 24, 2022

This result is on Epson TM-T20 III if I use another brand works correctly. The image on Epson is stretched. In fact if you look my uploaded image should be a square but the height is wrong

@KevinGong2013
Copy link
Owner

Printer has been rewrite.

select Mode to double width& double height

let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.initialize)
<<< Image(cgImage, mode: .doubleWH)
<<~ .page(.printAndFeed(lines: 1))

Image(cgImage, mode: .doubleWH) is key code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants