question

christianm avatar image
christianm asked sophia commented

Cloud Pay Display Receipt Printing

Hello, I am attempting to print an image onto the receipt printer. I am able to print short images fine, however the image I am trying to print is 1000px high and will not print. Is there a limit to the height of what can be printed through the SDK?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sophia avatar image sophia commented ·

Hi Christian - what is it that you're attempting to print?

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered

The bitmap must be able to fit within Android's binder size limit which is 1MB. That's for an uncompressed image. For a receipt that's 384px by 1000px (RGB565) that's 768K, which is probably reaching the limit considering other overhead what what else may be in the binder's buffer at that time.

This is a known limitation. I've filed an internal issue to resolve it unfortunately I don't have an ETA.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community