b***@artifex.com
2017-11-05 22:07:36 UTC
http://bugs.ghostscript.com/show_bug.cgi?id=698723
Bug ID: 698723
Summary: convert rgb pdf to cmyk with icc profile yields wrong
black
Product: Ghostscript
Version: unspecified
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: Color
Assignee: ***@artifex.com
Reporter: ***@googlemail.com
QA Contact: gs-***@ghostscript.com
Word Size: ---
I'm trying to convert an RGB-pdf to an CMYK-pdf using PSOcoated_v3.icc as
outputProfile (see
https://stackoverflow.com/questions/46819584/ghostscript-cmyk-black-value-in-pdf).
When using ghostscript to write a PDF file the black looks washed out so I
decided to dig into the PDF file and grab the cmyk color value.
The situation is as follows: I start with an RGB-pdf exported from Inkscape
which is simply a black rectangle filling up the entire page; lets name that
file black.pdf. Now I convert the pdf via
gs -dBATCH -dNOPAUSE -dNOCACHE \
-sDEVICE=pdfwrite \
-sProcessColorModel=DeviceCMYK \
-sColorConversionStrategy=CMYK \
-sOutputICCProfile=PSOcoated_v3.icc \
-sDefaultRGBProfile=sRGB2014.icc \
-dOverrideICC=true \
-dRenderIntent=1 \
-sOutputFile=black.cmyk.pdf\
black.pdf
and examine the content of the resulting pdf. The print commands for the
rectangle look different whether I use gs9.20 from the debian repository or
gs9.22 binary from ghostscript website.
in case of version 9.20 I get
q 0.1 0 0 0.1 0 0 cm
/R7 gs
0.722 0.675 0.671 0.882 k
0 0.0195313 10902.9 7748.55 re
f
Q
and for version 9.22
q 0.1 0 0 0.1 0 0 cm
/R7 gs
1 1 1 0 k
0 0.0195313 10902.9 7748.55 re
f
Q
In both cases the cmyk-black value is different from [0.83, 0.67, 0.51, 0.95]
which I would expect using the PSOcoated_v3 profile and relative colorimetric
intent.
Simply changing to sDevice=tiff32nc yields the expected cmyk representation for
black.
Any ideas?
Bug ID: 698723
Summary: convert rgb pdf to cmyk with icc profile yields wrong
black
Product: Ghostscript
Version: unspecified
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: Color
Assignee: ***@artifex.com
Reporter: ***@googlemail.com
QA Contact: gs-***@ghostscript.com
Word Size: ---
I'm trying to convert an RGB-pdf to an CMYK-pdf using PSOcoated_v3.icc as
outputProfile (see
https://stackoverflow.com/questions/46819584/ghostscript-cmyk-black-value-in-pdf).
When using ghostscript to write a PDF file the black looks washed out so I
decided to dig into the PDF file and grab the cmyk color value.
The situation is as follows: I start with an RGB-pdf exported from Inkscape
which is simply a black rectangle filling up the entire page; lets name that
file black.pdf. Now I convert the pdf via
gs -dBATCH -dNOPAUSE -dNOCACHE \
-sDEVICE=pdfwrite \
-sProcessColorModel=DeviceCMYK \
-sColorConversionStrategy=CMYK \
-sOutputICCProfile=PSOcoated_v3.icc \
-sDefaultRGBProfile=sRGB2014.icc \
-dOverrideICC=true \
-dRenderIntent=1 \
-sOutputFile=black.cmyk.pdf\
black.pdf
and examine the content of the resulting pdf. The print commands for the
rectangle look different whether I use gs9.20 from the debian repository or
gs9.22 binary from ghostscript website.
in case of version 9.20 I get
q 0.1 0 0 0.1 0 0 cm
/R7 gs
0.722 0.675 0.671 0.882 k
0 0.0195313 10902.9 7748.55 re
f
Q
and for version 9.22
q 0.1 0 0 0.1 0 0 cm
/R7 gs
1 1 1 0 k
0 0.0195313 10902.9 7748.55 re
f
Q
In both cases the cmyk-black value is different from [0.83, 0.67, 0.51, 0.95]
which I would expect using the PSOcoated_v3 profile and relative colorimetric
intent.
Simply changing to sDevice=tiff32nc yields the expected cmyk representation for
black.
Any ideas?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are receiving this mail because:
You are the QA Contact for the bug.