Closed Bug 1985667 Opened 1 year ago Closed 1 year ago

Simplify GTK CUPS monochrome implementation

Categories

(Core :: Printing: Output, task)

task

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox144 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

No description provided.

I was trying to figure out why monochrome printing didn't work on my
family's HP DeskJet 4200 series printer. Turns out that the general
monochrome settings we try to apply doesn't work. The PPD has:

  *OpenUI *ColorModel/Output Mode: PickOne
  *OrderDependency: 10 AnySetup *ColorModel
  *DefaultColorModel: RGB
  *ColorModel RGB/Color: "<</cupsColorSpace 17/cupsBitsPerColor 8/cupsRowStep 0>>setpagedevice"
  *ColorModel CMYGray/High Quality Grayscale: "<</cupsColorSpace 1/cupsBitsPerColor 8/cupsRowStep 1>>setpagedevice"
  *ColorModel KGray/Black Only Grayscale: "<</cupsColorSpace 1/cupsBitsPerColor 8/cupsRowStep 2>>setpagedevice"
  *CloseUI: *ColorModel

I.e., we should set ColorModel=KGray or so rather than Gray.

However, looking closer at this whole set-up, it seems CUPS does provide
a simpler option for this that does just what we want and works fine.

So if this works (and I think it should), we can simplify our monochrome
printing set-up significantly. But keep the old code at least for a bit
since this area is prone to device-specific behavior.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
QA Whiteboard: [qa-triage-done-c145/b144]
Duplicate of this bug: 2017594

This may have regressed monochrome printing for some users... bug 2030650 at least seems to be a case where monochrome printing works in 140 but doesn't work in 149 (it produces a color printout), for a particular Linux user.

See Also: → 2030650

It also fixed others like bug 2017594, grr... :(

(Well, and my printer, :P)

Regressions: 2030650
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: