-
Notifications
You must be signed in to change notification settings - Fork 26
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
universal filter generates RGB image/urf for the monochrome printer #38
Comments
Hi @alexpevzner , cups-filters nowadays is a place for filter binaries and backends for CUPS 2.x, and all logic was moved into libcupsfilters and libppd, so IMO the issue will be somewhere in those libraries. |
Hi @zdohnal, my first suspicion was Though the itself idea perform double conversion (IPP->PPD->IPP) sounds, as for me, a little bit quirky, the reconstructed attributes looks correct. So my next suspicion is the libcupsfilters, where parameters for Ghostscript are generated from the printer attributes. From the filter log, Ghostscript is called with incorrect parameter |
Yes, this is correct, Ghostscript has to use color space 18 (sGray). So possibly the |
Update: ghostscript uses color profile because |
We didn't check whether the device is GrayScale only and set the raster header as color device unless options or job attributes contain monochrome settings. After the fix, this happen only if `color-supported` is true, otherwise grayscal color space is set. Fixes OpenPrinting#38
Ok, I was able to track the issue down - it happens because The PR above adds check if color-supported is true and if not, sets Grayscale color spaces. |
Hi @zdohnal, I've promised to look to this issue by myself, but so far was too busy with the preparation to the new release of Thank a lot for taking this issue to yourself! |
This is derivative from the following bug reported against CUPS: OpenPrinting/cups#804
Although hotfix for this problem exist (OpenPrinting/cups#805), the actual problem is in the cups-filters (according to @michaelrsweet, and I agree with him).
With the PPD file, autogenerated by CUPS for the Pantum BM5100ADW Series printer (see attachment), the
universal
filter generates RGBimage/urf
output instead of the Grayscale one. Printer rejects this image, which effectively breaks driverless printing on this device (and probably on many other devices with similar behaviour).Adding the following line to the PPD file fixes the situation:
However even without this line the generated PPD should produce monochrome image. According to @michaelrsweet:
I'm willing to spend some time investigating this problem in cups-filters, so for now I assign this issue to myself
The text was updated successfully, but these errors were encountered: