[6.4.0-4] CMYK <=> RGB Bug

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
NitroPye

[6.4.0-4] CMYK <=> RGB Bug

Post by NitroPye »

Hello all,

Been having some issues converting CMYK files to RGB. If I am missing something elementary let me know but what I am trying to do worked in an older version of IM (6.2.*).

To start here are the files I used for testing:
I would then try to using convert to make these into RGB PNGs.

Code: Select all

convert Test_CMYK.psd -colorspace RGB Test_RGB.png
convert Test_CMYK_NoProfile.psd -colorspace RGB Test_RGB_NoProfile.png
The files that are then produced are goofed up color-wise. They are washed out and super bright. I choose the example image because it seems greens mess up the most. I feel like a channel is missing or something rather simple. Again, I am still not 100% certain I am not at fault and could be missing something elementary.
I then tried converting via the profile switch with the same results.

Code: Select all

convert Test_CMYK.psd -profile sRGB.icc Test_RGB.png


For one last crack at it, I assumed the PSD was at fault so I converted it to a CMYK tif then tried to convert that to a RGB png with the same whacky color results.

Please don't hesistate to ask for any other details or test files. I am running version 6.4.0-4 on a Intel Mac Pro running 10.4.

Thanks in advance.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: [6.4.0-4] CMYK <=> RGB Bug

Post by magick »

We got reasonable results with this command:
  • convert Test_CMYK.psd -strip -profile USWebCoatedSWOP.icc -profile sRGB.icc Test_RGB.png
We are using ImageMagick 6.4.0-3. Make sure your version of ImageMagick includes support for the LCMS delegate library. Type
  • identify -list configure
and check to ensure lcms is associated with the DELEGATES tag.
NitroPye

Re: [6.4.0-4] CMYK <=> RGB Bug

Post by NitroPye »

magick wrote:We got reasonable results with this command:
  • convert Test_CMYK.psd -strip -profile USWebCoatedSWOP.icc -profile sRGB.icc Test_RGB.png
This works for me too. The key seems to be the -profile USWebCoatedSWOP.icc. Out of curiosity where did you come up with that particular profile? The image has a different profile embedded.
magick wrote: We are using ImageMagick 6.4.0-3. Make sure your version of ImageMagick includes support for the LCMS delegate library. Type
  • identify -list configure
and check to ensure lcms is associated with the DELEGATES tag.
Yep lcms is associated.

Thanks again.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: [6.4.0-4] CMYK <=> RGB Bug

Post by anthony »

Added the above solution to IM Examples, Formats, PSD and will appear in a day or two.
http://www.imagemagick.org/Usage/formats/#psd
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply