This is a continuation of a color model problem as reported in bug #341207. The output isn't right due to arithmetic overflow in hplip, but is primarilly caused by ghostscript-gpl bug. Patch for hplip to have at least some color printing is in https://bugs.launchpad.net/hplip/+bug/695962
Created attachment 261289 [details] Problem with color model as printed by hplip
Just to finish the description. The problem is with printing. The ghostscript-gpl with the CUPS driver provides wrong raster file, which is then passed to hplip. This results in arithmetic overflows and wrongly printed colors - see attachment.
Created attachment 261360 [details] hplip-testpage.png HPLIP Testpage printed using the following versions: app-text/ghostscript-gpl-9.00-r1 net-print/cups-1.4.6 net-print/hplip-3.11.1-r2 Seems to look ok here.
Not sure about the RGB option though, the standard seems to be sRGB for Color LaserJet printers, the options offered by CUPS/the hplip ppd are: * Standard (sRGB) * Luminous * Photo * Photo (Adobe RGB 1998) * None
Ok, I will check the latest packages too (tomorrow).
(In reply to comment #5) > Ok, I will check the latest packages too (tomorrow). I had a quick look and the raster file looks much better with ghostscript-9.00-r1. I will have a look at the applied patches to see more. Still the Color Wheel and the HP logo is broken, but the rest looks (at the first sight) how it should be - RGB is part is white and the W part contains the drawing (from the RGBW color model). I will attach my test page print-out in the evening too.
I could reproduce the issue with an ink printer connected via usb. Attached are the results using different ghostscript versions, latest one looking the worst..
Created attachment 262829 [details] gentoo-gs-9.00.png
Created attachment 262831 [details] gentoo-gs-9.00-r1.png
Created attachment 262833 [details] gentoo-gs-9.01.png
Hm, there wasn't any update from Ghostscript developpers in the referenced bug report, so I'm not surprised it isn't fixed in 9.01.
(In reply to comment #11) > Hm, there wasn't any update from Ghostscript developpers in the referenced bug > report, so I'm not surprised it isn't fixed in 9.01. Indeed, but strange thing is that my testpage with 9.01 looks like yours with 9.00, while you got better results with 9.00-r1. -r1 just had upstream patches applied which are now in 9.01. I'll commit 9.01 later today, 9.xx won't go stable until this issue is resolved.
Timo, could you *please* mask the non-working versions of Ghostscript?
Created attachment 262845 [details] black-on-white graphviz diagram (ghostscript-9.00) Here's a printout I found, if it seems like not much of a problem...
(In reply to comment #14) > Created an attachment (id=262845) [details] > black-on-white graphviz diagram (ghostscript-9.00) > > Here's a printout I found, if it seems like not much of a problem... This has been fixed in 9.00-r1/9.01 I think. Version 9.00 definitely wasn't able to render images correctly. This is clearly visible on the HP logo (image) on the test page, while the rest of the page (vector drawings) looks good. When you tried to print scanned pages from PDF, print image from Gimp or _rasterized_ drawings from Inkscape, you had somehow inverted colors. This should be fixed.
Sorry to tell you, but this is definitely not fixed in ghostscript 9.01. I have a HP B110 printer here, and I tried hplip 3.10.9-r1 and 3.11.1-r2. As soon as I use ghostscript 9.* the colors are wrong if I print a testpage via hplip or just any picture. As soon as I downgrade to ghostscript 8.71-r6 the problems are gone. The USE-Flags of hplip (hpjis, hpcups) didn't seem to affect this. Just tell me if you need more information regarding versions in use or similar. Kind regards, Christian
(In reply to comment #16) > Sorry to tell you, but this is definitely not fixed in ghostscript 9.01. I meant only the part with inverted images. There are still problems with colors, though (see attachment 262833 [details] that nicely shows the problem).
Latest ghostscript-gpl git should have the issue fixed. I'm trying to get it running, currently without much success, though...
Please retest with ghostscript-gpl-9.04. (In the meantime using ghostscript-gpl-9.02 and cups-1.5_rc also worked for me printing a hplip testpage showing the right colors.)
Seeing same problem with ghostscript-gpl-9.04, cups-1.4.6-r21 and hplip-3.11.7. My HP Deskjet 3900 only prints in black and white.
It works with ghostscript-gpl-9.02, cups-1.4.6-r21 and hplip-3.11.7
I've reopened the upstream bug and added information about the BW problem.
The 9.04 problem is printed image in grayscale - to be precise. Only the W part of the RGBW image contains image data.
The problem has been fixed in the current Git code (master branch).
(In reply to comment #24) > The problem has been fixed in the current Git code (master branch). Fixed in ghostscript-gpl-9.04-r1. Huge thanks for taking care of this bug upstream and investing so much time in finding the root cause, greatly appreciated!
(In reply to comment #25) > (In reply to comment #24) > > The problem has been fixed in the current Git code (master branch). > > Fixed in ghostscript-gpl-9.04-r1. Huge thanks for taking care of this bug > upstream and investing so much time in finding the root cause, greatly > appreciated! Version ghostscript-gpl-9.04-r1 generates the same output as Git master. Thanks!
ghostscript-gpl-9.04-r1 fails to build for me on ~x86 without SSE2 support, I opened new bug 379597 for this. Version 9.02 builds well.
There is one more commit upstream to fix color model changes.