Bug 693438

Summary: Using -sOutputICCProfile produces an invalid cups raster file using the cups output device
Product: Ghostscript Reporter: Richard Hughes <richard>
Component: ColorAssignee: Michael Vrhel <michael.vrhel>
Status: RESOLVED INVALID QA Contact: Bug traffic <tech>
Severity: normal    
Priority: P4 CC: till.kamppeter
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: all the input and output files showing the bug

Description Richard Hughes 2012-11-10 14:20:13 UTC
Created attachment 9071 [details]
all the input and output files showing the bug

This works rather well:

gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -dcupsColorSpace=6 -dcupsBitsPerColor=8 -r300 -sDEVICE=cups -sOutputFile=~/test.raster ~/test-input.pdf

This works really not well at all:

./gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOMEDIAATTRS -dcupsColorSpace=6 -sOutputICCProfile=/usr/share/color/icc/FakeBRG.icc -dcupsBitsPerColor=8 -r300 -sDEVICE=cups -sOutputFile=~/test.raster ~/test-input.pdf

The resulting raster file has just black blocks where the text should be. Using another input PDF which contains untagged images (my airline boarding pass, if you care) results in a C,M,Y,K banded image throughout the document. Using 9.06 the whole file has the CMYK banding, using git master only some parts of the file have the banding.

I have attached the input files, the ICC profile and the output files which show the bug. Please ask if you have any questions.

As an aside using the output device of "pdf", Acrobat X 10.1.4 says "unable to analyse the PDF file", "An error occurred while parsing a contents stream, Unable to analyse the PDF file" only when using sOutputICCProfile.
Comment 1 Michael Vrhel 2012-11-19 18:20:39 UTC
The command line 

-dcupsColorSpace=6 -sOutputICCProfile=/usr/share/color/icc/FakeBRG.icc
-dcupsBitsPerColor=8 -r300 -sDEVICE=cups -sOutputFile=~/test.raster

Makes no sense since you are specifying that the output color space is CMYK (-dcupsColorSpace = 6) and you are specifying that your output ICC profile is RGB based (profile -sOutputICCProfile=/usr/share/color/icc/FakeBRG.icc is a RGB profile). 

Marking this as invalid.