michaelrsweet / lprint

A Label Printer Application
https://www.msweet.org/lprint
Apache License 2.0
219 stars 29 forks source link

Darkness setting doesn't work, Zebra dithering. #76

Closed ersan closed 1 year ago

ersan commented 1 year ago

I have a Zebra LP2844 EPL printer, fought with setting up lprint and finally got it working. Even compiled the current git versions of lprint/pappl to be sure.

The darkness setting doesn't appear to work at all, it doesn't matter if it's 0% or 100% it prints the same - extremely light and not readable. Doesn't matter what client I print it from either.

printing-defaults

IMG_2640

Also I was hoping to use lprint because of a dithering problem that plagues cups - but there don't seem to be any dithering settings here and it has the exact same issue as you can see in the printout.

Some other small things I noticed:

ersan commented 1 year ago

I see this comment about using -o print-color-mode=bi-level to resolve the dithering issue - but when I try to set that as a default I get Unsupported print-color-mode-default=bi-level(0x0004)

Is there any way to ensure it is set by default for prints going through the server?

I also reckon that the server is overriding the default darkness when it prints which is causing the first issue.

brianbarr commented 1 year ago

This issue has persisted for literally years. Fixing the Zebra Cups drivers to eliminate this long standing defect was abandoned several years ago in favor of this ahh.... new solution. While the architecture of LPRINT, PAPPL, et al is very impressive it still fails to fix a basic issue -- that Linux and Mac users still cannot print clearly rendered basic barcodes on Zebra printers. Using Windows or an expensive 3rd party driver is the only thing that actually works. Perhaps one day..

michaelrsweet commented 1 year ago

OK, so looking at this, the EPL driver is sending a darkness command to the printer. I don't have an old 2844 to test with, but a newer printer using EPL emulation seems to work with it...

I will try to address any documentation issues (lots of stuff all mixed up here...)

WRT print-color-mode=bi-level, that was an omission in the capabilities:

[master 2fce253] Fix missing print-color-mode=bi-level (Issue #76)

michaelrsweet commented 1 year ago

[master 0baa93e] Fix docos (Issue #76)