-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Lprint version 1.2 still prints "fuzzy" barcodes and text on LP2844 (Zebra EPL) label printer #91
Comments
Please attach the PPD file for the printer and a copy of the error_log file with debug logging enabled ( |
Hoping the new dithering algorithm will work around any issues like this - antialiasing effects render bar codes "fuzzy", and the new dithering algorithm attempts to detect these issues and clamp almost black/white areas so that the output is clearer. |
root@debian-lprint: I then printed two shipping labels and they came out blank. |
Still working out some kinks in the ZPL driver... |
I am also seeing significant dithering issues on 1.2 (haven't tested earlier versions) with a ZD-420 203dpi DT, using the macOS's 13.1 built-in CUPS driver also struggles with dithering on this test label but not as bad as lprint. Some labels come out crisp w/ built-in CUPS driver, so not a printer issue. |
Most content that would be sent to a monochrome label printer is black&white, even if it's effectively grayscale in an image or PDF. Therefore dithering is usually undesirable - it's better to use a simple threshold algorithm to convert to monochrome. I see -o print-content-optimize listed in documentation. But I didn't see lprint/pappl/cups[v2] doing anything real with the value (did I miss it?). This would seem to be the appropriate option to select whether dithering is done (and default off for lprint IMHO). Also, it may be helpful to note that Zebra "Link-OS" printers (e.g. ZD*s) can accept most PDF documents directly, with "apl.enable" set to "pdf". |
@bnemura The "print-content-optimize" attribute doesn't get a lot of usage, mainly because modern clients generally are producing 'text-and-graphic' content when printing from office apps, and 'photo' content isn't normally targeted for these label printers because they aren't well-suited to that sort of content... That said, the "print-color-mode" attribute is actually what you are looking for - 'monochrome' for shaded output and 'bi-level' for threshold. What I've done for the next LPrint release (what is present in the master branch) is implement a specialized dithering and filtering algorithm that attempts to detect barcode content and threshold it while dithering everything else. This gets used for the "print-color-mode" 'auto' and 'monochrome' values, while 'bi-level' does thresholding exclusively. WRT the PDF support in recent Zebra printers, that might be interesting to look at supporting but neither of my printers (GX420d and GX430t) seem to support it... |
@michaelrsweet well done, sir! Still some minor artifacts, but overall very impressive. The DataMatrix looks a little borderline, but still scans off my screen! I don't have a barcode grader handy. |
So I'm going to close this out as "fixed" in 1.3 (next release real soon now). I do have a newer Zebra printer now and will investigate options for using the PDF support in a future release... Tracking that in issue #110. |
I can confirm that Shopify labels (including international) now all come out great!! 🤩 |
Hi @michaelrsweet As a longtime Zebra Mac user I'm excited to come across lprint. I have suffered with blurry dithered labels for a very long time. When I add a printer using the commands referenced in the documentation, I end up with a print queue that ether stops after each job, or goes into a print/stop loop, with hundreds of aborted jobs in the web interface queue. Any ideas? |
If you enable debug logging (from the web interface), please file a new bug with the log and lprint.state files. |
Hi Michael, what I realized is that I was using a model-specific driver that was not correct for my printer (I have a GK420D but was using GX420D). I've since switched to the generic drivers, and although I'm having the label feed issue documented in the other thread, they do print. Thanks! |
The fuzzy print dithering issue is still present, even when setting "-o print-color-mode=bi-level" for the printer.
The label with the "SAMPLE" overlay was generated by the Endicia app on a mac using a native epl driver on the same printer and it is crisp and legible vs the other label which was a barcode pdf and printed using lprint/airprint from a mac.
So the printer is not the issue.
Also there are a series of evenly spaced dots all over the label printed using lprint.
See attached magnified pictures..
The text was updated successfully, but these errors were encountered: