PDF color conversion problem on PPC machines

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
zombor

PDF color conversion problem on PPC machines

Post by zombor »

Hi, I am not sure if this is a bug in IM or Ghostscript. When converting from a PDF document to a raster image format (png for example), on PPC machines the colorspace comes out completely off. The same command on an Intel machine works fine. I'm assuming some endian-specific code is off somewhere. My command is:

/opt/local/bin/convert -sample 250 -colorspace CMYK 485ad067f1866.pdf[0] -colorspace RGB 485ad067f1866.png

You can see the resulting images below:

PPC:
Image

Intel:
Image
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PDF color conversion problem on PPC machines

Post by magick »

Try this:
  • /opt/local/bin/convert -colorspace RGB 485ad067f1866.pdf[0] -resize 250 485ad067f1866.png
Does that return identical renderings?
zombor

Re: PDF color conversion problem on PPC machines

Post by zombor »

That command results in the same bright green on both platforms.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PDF color conversion problem on PPC machines

Post by magick »

The correct solution to this problem is to use two color profiles, generally a Swop for CMYK and an sRGB for RGB. First check to ensure LCMS is supported in your ImageMagick distribution otherwise you will get unexpected results. Type
  • identify -list configure
and assure LCMS is associated with the DELEGATES tag.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF color conversion problem on PPC machines

Post by fmw42 »

Post Reply