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

Random strings printed at the end of images #508

Open
1 task done
robinchhetri opened this issue Mar 21, 2023 · 2 comments
Open
1 task done

Random strings printed at the end of images #508

robinchhetri opened this issue Mar 21, 2023 · 2 comments

Comments

@robinchhetri
Copy link

I have:

  • searched open and closed issues for duplicates

Bug description

Printer prints a bunch of gobbledygook at the end of images (looks like 0s). Only happens if it printed using image and with impl=bitImageColumn. I could not get the other two (graphics and bitImageRaster) to work.
image

Steps to reproduce

  • myprinter.image(image,impl='bitImageColumn',center=True)
  • image is a BytesIO
  • I use PIL to open the image (code below):
img = imgkit.from_string(current_job, False, options=kitoptions)
bytesImg = BytesIO(img)
bytesImg.seek(0)
image = Image.open(bytesImg)

Device info

Printer: POS-5890T

python-escpos version: 3.0a9.dev86+g2bc61d9

python version: Python 3.9.2

operating system: Raspbian GNU/Linux 11 (bullseye)

@belono
Copy link
Contributor

belono commented Apr 24, 2023

Hi @robinchhetri .

According to the POS-5890 profile "bitImageColumn" is not supported.
Instead, "bitImageRaster" is the only implementation that your printer supports to print images.

@robinchhetri
Copy link
Author

Thanks @belono - I tried biImageRaster but it did not print correctly. I am currently using bitImageColumn and I don't have any issues. I manipulated the size of the image with imgkit and the 0s disappeared.

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

2 participants