Converting CMYK to RGB

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
OrangeSkidoo

Converting CMYK to RGB

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

Re: Converting CMYK to RGB

Post 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.
OrangeSkidoo

Re: Converting CMYK to RGB

Post 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!
Post Reply