Page 1 of 1

Converting CMYK to RGB

Posted: 2007-11-14T17:20:19-07:00
by OrangeSkidoo
I know this has been covered here before, but I seem to be getting somewhat desaturated colors when I convert a CMYK tiff to an RGB jpg. (CMYK -> CMYK is almost perfect.)

/usr/bin/convert ECCLogoSmall.tif -profile AdobeRGB1998.icc ECCLogoSmall.jpg

Source: http://suzukiassociation.org/images/ECCLogoSmall.tiff
Result: http://suzukiassociation.org/images/ECCLogoSmall.jpg

What I want (converted with Photoshop): http://suzukiassociation.org/images/ECC ... toshop.jpg

Is this as good as I can get, or am I missing an option?

Re: Converting CMYK to RGB

Posted: 2007-11-14T17:43:39-07:00
by magick
Try this command:
  • convert ECCLogoSmall.tif -profile sRGB.icm -sampling-factor 1 -quality 94 ECCLogoSmall.jpg
This produces a JPEG image with the same sampling factor and compression quality as the Photoshop image and is very close in color.

Re: Converting CMYK to RGB

Posted: 2007-11-14T20:41:52-07:00
by OrangeSkidoo
Thanks! -sampling-factor 1 helped, and I think the Adobe color profile file was to blame as well. (I had downloaded that from the Adobe site as I don't know where the profile files are on my shared hosting server.)

This is with -sampling-factor 1 and AdobeRGB1998.icc
http://suzukiassociation.org/admin/ECCL ... .adobe.jpg

This is with sRGB.icm I just downloaded from the ImageMagick distribution
http://suzukiassociation.org/admin/ECCLogoSmall.sf.jpg

That is exactly what I need. I'm working on an online member directory, and I need to let people upload all sorts of pictures. I think I'm now well on the way to having that feature solved. Thank you for the help!