[CUPS] firefox print always gray, if the default color is gray
Categories
(Core :: Printing: Output, defect, P3)
Tracking
()
People
(Reporter: mozilla, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
Steps to reproduce:
on manjaro linux:
- set default color of printer to gray in cups
- open a image in firefox
- press strg+p
- change color mode to color
Actual results:
the image is printed in gray
(if I print the same with another program and change mode to color is it printed in color)
Expected results:
image should be printed in color
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Interesting situation. So from my understanding the current situation is this: GTK's API for selecting the color mode when printing doesn't work. When selecting "Black and white" we use some internal CUPS properties to try and force printing in grayscale: https://searchfox.org/mozilla-central/rev/1f4e023df8ff04b893ca792492f1e2e9629bfddb/widget/gtk/nsDeviceContextSpecG.cpp#233. We don't do anything if "Colour" mode is selected.
What we could in theory do is also maintain a list of properties that force printing in color. Sadly actually finding out those values is not so simple.
Comment 2•5 years ago
|
||
Yeah, looks like the right fix though. Ideally we only need one list with {color, monochrome} pairs... Though in practice there are various color spaces a printer can print on, etc, so it might be a bit more complicated than that...
Reporter, which printer is this? Can you attach the ppd from your driver? Thanks!
Comment 3•5 years ago
|
||
It's indeed pretty disappointing that gtk_print_settings_set_use_color only works when you're using gtk on windows, btw :(
Comment 4•5 years ago
|
||
Looking at some PPD files in the wild, a lot of them have multiple options like: Automatic or CMYK instead of just Color. I am afraid forcing one specific mode is going to make printing worse for more people.
Comment 5•5 years ago
•
|
||
Yeah this approach is not going to work. I parsed a few thousand PPD files from https://www.openprinting.org/download/PPD/ and the most common color setting ColorModel has a lot of possible values that aren't Gray: Color, RGB, CYMK, Default, Auto ...
@emilio I am using the printer MFC-L3770CDW. I did not manual install a PPD file and did not find it in /usr/share/ppd . The cups interface says it does use the driver "MFC-L3770CDW series - IPP Everywhere (color, 2-sided printing)"
Updated•5 years ago
|
Exactly the same happens also to me on Windows 10: when trying to print in color mode the Kyocera TASKalfa 4053ci prints in grayscale because this is what I've set as default in the printer settings.
Is there something I could provide you to help?
Whats interesting: because I know that Thunderbird uses the same new printing dialog I've tried what happens there if I try to print a mail that has a picture in it. The problem of not being able to activate the color mode in the new printing dialog remains, but in Thunderbird the preview of the print is always shown in grayscale (as it will also been printed in grayscale afterwards). In Firefox the user sees a preview in colors and therefore also thinks that he is getting a print in colors...
Comment 8•1 year ago
|
||
I just encountered the same bug on Ubuntu 24.04.
Other programs seems to handle this correctly (LibreOffice, Gnome Text Editor, Chromium).
Both LibreOffice and Gnome Text Editor add the ipp attribute ColorModel: color. Couldn't Firefox do the same?
Description
•