Bug 693438 - Using -sOutputICCProfile produces an invalid cups raster file using the cups output device
Using -sOutputICCProfile produces an invalid cups raster file using the cups ...
Status: RESOLVED INVALID
Product: Ghostscript
Classification: Unclassified
Component: Color
master
PC Linux
: P4 normal
Assigned To: Michael Vrhel
Bug traffic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-10 14:20 PST by Richard Hughes
Modified: 2012-11-19 18:20 PST (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
all the input and output files showing the bug (1.06 MB, application/x-zip-compressed)
2012-11-10 14:20 PST, Richard Hughes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Hughes 2012-11-10 14:20:13 PST
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 PST
The command line 

./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

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.