Page 1 of 1

icc source profile ignored when converting from pdf

Posted: 2010-04-16T03:35:41-07:00
by blahor
Hi everybody!

I'm experiencing a color problem when converting from pdf files. It looks like the icc profile of the source pdf is ignored.
This has worked at some point with earlier versions of IM (and ghostscript). But we're caching image files so I can't really say when it stopped working.

IM and gs versions currently in use:

Code: Select all

convert -version
Version: ImageMagick 6.3.7 08/09/09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

gs -version
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
Command with verbose output:

Code: Select all

convert -verbose -density 600 foo.pdf -profile /home/journal/html/lib/ext/pdf/ISOnewspaper26v4_MaxK.icc -strip -quality 100 -resize 1870 bar.jpg
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r600x600" -dUseCIEColor  "-sOutputFile=/tmp/magick-XXzv5TYn" "-f/tmp/magick-XXeK7oUE" "-f/tmp/magick-XXqoD0PV"
/tmp/magick-XXzv5TYn PNM 5102x7158 5102x7158+0+0 DirectClass 8-bit 139.313mb 1.380u 0:02
foo.pdf PDF 5102x7158 5102x7158+0+0 DirectClass 16-bit 139.313mb
/home/journal/html/lib/ext/pdf/ISOnewspaper26v4_MaxK.icc ICC 1x1 1x1+0+0 DirectClass 16-bit 849.148kb
foo.pdf=>bar.jpg PDF 5102x7158=>1870x2624 1870x2624+0+0 DirectClass 16-bit 5.05319mb 5.690u 0:07
Here's the same image twice as example. On the left side the source pdf was in 'Adobe sRGB' and the colors come out as expected. On the right side the source pdf is cmyk and the colors come out wrong:
Image

I hope sombody can help.

Re: icc source profile ignored when converting from pdf

Posted: 2010-04-23T13:50:26-07:00
by hankr
Bump.

Yes, something has seriously impacted PDF -> jpeg conversion. I am guessing it has to do with this change:

2010-02-18 6.5.9-8 Cristy <quetzlzacatenango@image...>
Detect PDF ICCBased colorspace.

Ideas?

Re: icc source profile ignored when converting from pdf

Posted: 2010-04-23T14:06:00-07:00
by magick
Post a URL to an example PDF file so we can download and inspect it. Thanks.