KevinGong2013 / Printer

Swift ticket printer framework for ESC/POS-compatible thermal printers.
Apache License 2.0
144 stars 72 forks source link

Unable to print long image #68

Open tkachenko-1324 opened 1 year ago

tkachenko-1324 commented 1 year ago

I need to print a full receipt like a long picture.

And printing stops at about 10%

Also I tried to cut picture for pieces, it helps but I have whitespaces between pictures

`let images = slice(image: resizedImage, into: 3)

    var ticket = Ticket()

    images.forEach {
        ticket.add(block: .image($0, attributes: .alignment(.center)))
    }

    ticket.feedLinesOnHead = 0
    ticket.feedLinesOnTail = 0

    if bluetoothPrinterManager.canPrint {
        bluetoothPrinterManager.print(ticket)
    }`

@KevinGong2013

burin-t commented 1 year ago

haha just like me Work Around: separate image example 100px per image and add in ticket