Convert CMYK to RGB jpgs - strange colors

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
RuneW

Convert CMYK to RGB jpgs - strange colors

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert CMYK to RGB jpgs - strange colors

Post 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
RuneW

Re: Convert CMYK to RGB jpgs - strange colors

Post by RuneW »

OK. Thanks!
Post Reply