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

Raster image size error #127

Open
devoldski opened this issue May 5, 2022 · 2 comments
Open

Raster image size error #127

devoldski opened this issue May 5, 2022 · 2 comments

Comments

@devoldski
Copy link

devoldski commented May 5, 2022

Hello and thanks for your great software.

Im trying to print on a QL-820NWB and cant seem to get it to work, however I think i might have found out what cause this.

It seems to me that the program does not identify the correct size of the image provided, this might be me using the wrong command line options, but I think I will need some help here :-).

I'm trying to print an image that is prepared for a 62mm roll and have tried with both 62x100 and 62 endless

from what i have read in the documentation what i have done below should work.

info img1: 
img1.png PNG 696x1109 696x1109+0+0 8-bit Gray 256c 62544B 0.000u 0:00.000

info img2:
img2.png PNG 696x1392 696x1392+0+0 8-bit Gray 256c 52318B 0.000u 0:00.000

Command for 62x100 (696x1109)
brother_ql -m QL-820NWB -p /dev/usb/lp0 --debug print  -lq  --red -l 62x100 img1.png

result:
DEBUG:brother_ql.raster:raster_image_size: 720x1109


Command for 62 endless   (696x1392)
brother_ql -m QL-820NWB -p /dev/usb/lp0 --debug print  -lq  -l 62red img2.png
result:
DEBUG:brother_ql.raster:raster_image_size: 720x1392

With either command I get the following debug error stating that the width of my image is 720 while it is 696 as documented.

DEBUG:brother_ql.raster:raster_image_size: 720x1109
INFO:brother_ql.backends.helpers:Sending instructions to the printer. Total: 64972 bytes.
DEBUG:brother_ql.backends.generic:Writing 64972 bytes.

The printer reports wrong roll type and brother_ql hangs, so you have to terminate with ctrl+c

To me it seems that the width is not detected properly, do anyone have a suggestion on how to rectify this?

Br
Alfa

@devoldski devoldski changed the title rater image size error Raster image size error May 5, 2022
@coledeck
Copy link

What if you specify -l 62red instead of -l 62x100 ?

My 820NWB prints on the DK-2251 black and red endless tape with

brother_ql -m QL-820NWB -b pyusb -p usb://0x04f9:0x209d/000M1Z729562 print -l 62red --red img.png

@devoldski
Copy link
Author

Thank you. will try and see if that sorts it.

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