Greetings! Thank you for this awesome library!
I've been wondering for a while the reason why I occasionally get corrupted images (missing rows, or rows not aligned correctly). Sometimes the image printing gets halted and the printer starts spewing out random characters.
I looked into your code and noticed that the image printing script sleeps for a short amount of time for each chunk's row. This is dependant on the printer's baudrate.
See https://github.com/BoboTiG/thermalprinter/blob/master/thermalprinter/thermalprinter.py#L418 and
https://github.com/BoboTiG/thermalprinter/blob/master/thermalprinter/thermalprinter.py#L53
I managed to get my images working by setting a hardcoded self._byte_Time 0.0005 (which is somewhat close to the default timing) rather than depending on the low sleep time set by my higher baudrate 115200.
Just to let you know! Thanks again!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too