Incorrect color output of the buttons on the webpages (google search web page) when printed from Mozilla firefox 12 and above
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GS-GPL |
Fix Released
|
High
|
|||
ghostscript (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Till Kamppeter |
Bug Description
This bug is happening on
Ubuntu : 12.04 LTS
ghostscript version : 9.05
Mozilla firefox: 12 and above.
How to reproduce:
1. Open Mozilla firefox web browser
2. Type in the url : www.google.com
3. Go to File->Print and select "Print to File" option and output format as "pdf" and click on the print button.
4. Pass the generated pdf file to Ghostscript 9.05 using cupsfilter command:
cupsfilter -m application/
5. Open the mozilla.ras file using Rasterviewer application
rasterviewer ~/mozilla.ras
You will find that the color of the botton "Google Search" and "I'm feeling luck" are yellow in color which is different from what we view in the browser.
[IMPACT]
Everyone with an HP inkjet printer (and perhaps also some other color printers) can get wrongly colored graphical elements when printing from programs which use Cairo for their print output
The fix is a small patch on Ghostscript, with which the Ghostscript developers have fixed the bug upstream (see linked upstream bug).
[TESTCASE]
Let Ghostscript render the attached sample PDF file (generated via "Print to file" by Firefox, from the www.google.com page) into the CUPS Raster format with color space 17 (the color space used for HP's color inkjets by HPLIP) using the following command line:
gs -sDEVICE=cups -dcupsColorSpace=17 -sOutputFile=
The display the output file with rasterview from http://
rasterview out17.raster
The buttons on the page appear in yellow whereas in the original PDF file they are gray.
After installing the proposed package and repeating the Ghostscript command line call, the buttons in out17.raster appear correctly in gray.
You can also use the steps shown in the original bug description to reproduce the bug and to verify that the proposed package fixes it.
[Regression Potential]
The patch is very small and simple and it is issued by the upstream developers who run it through automated regression tests with several 10k of files, so the probability of regressions is very low.
Changed in gs-gpl: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in ghostscript (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in ghostscript (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → ubuntu-12.04.1 |
Changed in ghostscript (Ubuntu): | |
milestone: | ubuntu-12.04.1 → none |
Changed in ghostscript (Ubuntu Precise): | |
status: | Triaged → Fix Committed |
description: | updated |
Changed in gs-gpl: | |
status: | Confirmed → Fix Released |
Changed in ghostscript (Ubuntu Precise): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
I cannot reproduce this bug. Using PPD files for color printers I get always correctly colored output. Using laserjet.ppd I get grayscale output, no yellow at all (it is for a monochrome printer).
Note that /usr/share/ cups/model/ laserjet. ppd does not exist in Ubuntu 12.04. I have to generate it via
/usr/lib/ cups/daemon/ cups-driverd cat drv:/// sample. drv/laserjet. ppd > laserjet.ppd
This can mean that your laserjet.ppd is not the same as mine, so please attach your laserjet.ppd.
I have no utility named "rasterviewer", instead, I have used "rasterview" from http:// www.easysw. com/~mike/ rasterview/ index.html. Please post a link from where you got "rasterviewer".