Printer icon indicating copy to clipboard operation
Printer copied to clipboard

Wrong image on Ticket - horizontal white lines

Open TillMoss opened this issue 3 years ago • 3 comments

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

TillMoss avatar Apr 22 '22 14:04 TillMoss

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

smalldevcloud avatar Apr 23 '22 13:04 smalldevcloud

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

TillMoss avatar Apr 24 '22 20:04 TillMoss

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.

KevinGong2013 avatar Feb 03 '23 08:02 KevinGong2013