Page 1 of 1

Convert CMYK to RGB jpgs - strange colors

Posted: 2009-03-24T02:20:29-07:00
by RuneW
Hi!

I'm kind of new to ImageMagick so I may have misunderstood something basic, but here goes:

I'm trying to convert a CMYK jpg to RGB jpg, but the colors come out strange.

The original image:
http://www.sub20hz.com/fun/im/_CMYK.jpg

The image conversion by ImageMagikc:
http://www.sub20hz.com/fun/im/_RGB.jpg

The image conversion by Photoshop:
http://www.sub20hz.com/fun/im/_RGB_photoshop.jpg

As I'm writing this post I see that the browser also shows the image in the same way as ImageMagick renders it... Now I'm totally confused. Is it Photoshop that does it wrong or is it the other ones? Is it something very strange with the CMYK image above?


Anyhow, here's the command line I use:

Code: Select all

convert -colorspace RGB _CMYK.jpg _RGB.jpg
The version of convert.exe is 6.5.0-4

Re: Convert CMYK to RGB jpgs - strange colors

Posted: 2009-03-24T05:31:09-07:00
by magick
Not a bug. For proper CMYK to RGB color conversion, use color profiles. You need a SWOP color profile to associate with the input colorspace and an sRGB color profile to associate with the output colorspace:
  • convert CMYK.jpg -profile SWOP.icc -profile sRGB.icc RGB.jpg

Re: Convert CMYK to RGB jpgs - strange colors

Posted: 2009-03-25T01:05:35-07:00
by RuneW
OK. Thanks!