Navigation Menu

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

Regression on Brother QL500 label printer introduced in 1.28.12 #454

Closed
christianlupus opened this issue Mar 23, 2022 · 8 comments
Closed

Comments

@christianlupus
Copy link

Hello,

I have a Brother QL500 label printer. I use Archlinux and updated recently from 1.28.11 to 1.28.12. After the update, I was no longer able to properly print on DK-11209 labels (62x29mm, landscape). See below for an image of the problem. The upper left image is printed with 1.28.12 while the lower one with 1.28.11.

To rule out a physical defect, I printed the small 23x23mm label to the right (also with 1.28.12). The printer is built such that the labels are aligned on the right edge of the carrier. That shows that the problem of white margins only appears for this specific page size.

Unfortunately, I do not have other labels at hand just now. So, I cannot test other sizes. I'll check if I find some in the storage tomorrow.

Switching back and forth between the versions enables and disabled the problem so it seems a regression. Please tell me if I can somehow support you in finding the issue. Doing a git bisect might be possible but will require some preparation on my side.

IMG_20220323_164617_309-mod

@tillkamppeter
Copy link
Member

Could you please do the following:

Run the command

cupsctl --debug-logging

Install cups-filters 1.28.12 (failing case). Then print a job, check whether it still fails (= has wrong margins). Attach your /var/log/cups/error_log file to this bug report.

Install cups-filters 1.28.11 (succeeding case). Then print a job, check whether it still succeeds (= has correct margins). Attach your /var/log/cups/error_log file to this bug report.

Please also install your file /etc/cups/ppd/<queuename>.ppd file where your replace <queuename> by the name of the print queue of your label printer.

Please do not compress or package together the files and attach copies renamed to have a .txt file extension to get accepted here on the GitHub site.

@christianlupus
Copy link
Author

Sorry for my late answer. I had to prepare for the tests first.

Here come the requested files:

I verified that the prints fail/succeed according to my initial post. The two selective logs are created by making a copy of /var/log/cups/error_log just after cupsctl --debug-logging and one after the print itself. Then, I checked the number of lines and used tail to cut away anything before the print. If you need a general overview, please have a look at the total logs.

@tillkamppeter
Copy link
Member

Could you also provide your input (PDF?) file which you had sent to the printer? With which application did you create it?

@christianlupus
Copy link
Author

Hello. I created a PDF using glabels-3. The file was generated by print-to-pdf: Ausgabe.pdf

I sent to the printer via lp -d QL500 Ausgabe.pdf.

@tillkamppeter
Copy link
Member

Thanks, I could already reproduce the bug by creating the PDF test page for this printer with bannertopdf and use this as input file.

The problem occurs whenever a printer pulls the paper long-edge first and not the usual short-edge first, like most inkjets or lasers do. Long-edge first is common on label printers and on (usually roll-fed with cutter) large format printers. So I could reproduce your problem with your PPD and also with a PPD for the HP DesignJet T1100 (choosing the "A4.Transverse" page size there).

What happens is that the cropping of the page image is not done correctly at least with page-scaling settings auto (default), none, and fill. I have already found a fix for this and will commit it soon and then release cups-filters 1.28.13 (which will then also be the version of Ubuntu 22.04 LTS, Jammy Jellyfish)..

@christianlupus
Copy link
Author

Wow, that was fast. Thanks for the help! I will wait for the updated version.

tillkamppeter added a commit that referenced this issue Mar 27, 2022
If the printer takes the paper long-edge-first (lasers and inkjets
usually take it short-edge first, but roll-fed large-formats or label
printers also take long-edge-first) the cropping of the page image for
crop-to-fit (print-scaling=none) and fill (print-scaling=fill) by the
pdftopdf() filter function did not work correctly. This is fixed now.

Issue #454.
tillkamppeter added a commit that referenced this issue Mar 27, 2022
If the printer takes the paper long-edge-first (lasers and inkjets
usually take it short-edge first, but roll-fed large-formats or label
printers also take long-edge-first) the cropping of the page image for
crop-to-fit (print-scaling=none) and fill (print-scaling=fill) by the
pdftopdf() filter function did not work correctly. This is fixed now.

Issue #454

(manually backported from commit 70e0f47)
@tillkamppeter
Copy link
Member

Fixed in the GIT repositories, on master with commit 70e0f47 and on 1.x with commit d4ae672.

I will release 1.28.13 with this fix soon.

Thanks a lot for this bug report.

@tillkamppeter
Copy link
Member

1.28.13 is released now.

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