Page 1 of 1

CMYK to RGB

Posted: 2016-09-18T15:55:19-07:00
by pssvarma8881
Hi ,

I am trying to convert a PSD file with CMYK to Jpeg with RGB .

when we convert the image we observe that final converted image (jpeg) don't have same colors as original file.there is a huge difference in color .

We are using ImageMagick version

Version: ImageMagick 6.9.0-0 Q16 x64 2014-11-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC


Command we are using :

convert -resample 72 sourceimage.psd -background white -flatten -resize 500 "finalimage.jpg"

Let me know if you faced this issue before .i need to deliver this functionality ASAP .

Please help.

Re: CMYK to RGB

Posted: 2016-09-18T16:39:25-07:00
by snibgo
pssvarma8881 wrote:I am trying to convert a PSD file with CMYK to Jpeg with RGB .
Your CMYK PSD image probably contains an embedded profile that describes the colours precisely. ("identify -verbose x.psd" will tell you if this is so.) If so, you should use "-profile sRGB.icc" or similar command to convert it to a precise sRGB profile.

Re: CMYK to RGB

Posted: 2016-09-18T17:18:40-07:00
by fmw42
Asides:

Proper IM syntax would read the input psd file and then do the -resample. This becomes more important with IM 7, which is not as forgiving as IM 6. See http://www.imagemagick.org/Usage/basics/#why and http://www.imagemagick.org/Usage/basics/#syntax

It also seems to me that you may lose quality by doing both a -resample and -resize. You should be able to just resize and set the desired density.