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

EPSON TM-m30III randomly fails to print images #631

Open
1 task done
rubenbroman opened this issue Mar 20, 2024 · 1 comment
Open
1 task done

EPSON TM-m30III randomly fails to print images #631

rubenbroman opened this issue Mar 20, 2024 · 1 comment

Comments

@rubenbroman
Copy link

I have:

  • searched open and closed issues for duplicates

Bug description

With random intervals images won't print properly but instead the image data as characters, see image. The failure interval is between 8 and 300 prints. I've been able to reproduce this on 3 different EPSON TM-m30III printers.

IMG_1475 Large
IMG_1476 Large

Steps to reproduce

from escpos import printer
from time import sleep

p = printer.Usb(0x04b8, 0x0e32)

while True:
    p.image("/path/to/image.jpg")
    p.cut()
    sleep(3)

I've used this image when reproducing the error, but it happens with different images in different sizes.
hand

Device info

Printer: EPSON TM-m30III

  • python-escpos version: 3.1
  • python version: CPython v3.11.2
  • platform: Linux-6.1.0-rpi7-rpi-2712-aarch64-with-glibc2.36
  • printer driver USB is usable: True
  • printer driver File is usable: True
  • printer driver Network is usable: True
  • printer driver Serial is usable: True
  • printer driver LP is usable: True
  • printer driver Dummy is usable: True
  • printer driver CupsPrinter is usable: True
  • printer driver Win32Raw is usable: False
@rubenbroman
Copy link
Author

It seems like setting fragment_height to 100 pixels fixes the bug. So probably a buffer error on the printer. I will see if I can replicate the error with p.image(file,fragment_height=100) and report back here.

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

No branches or pull requests

1 participant