RMagick: Convert CMYK EPS to RGB PNG maintaining transparent background
I've spent a long time trying to go from a CMYK EPS to a RGB PNG using RMagick and Rails. Hopefully this will be of use to someone: def convert_image_from_cmyk_to_rgb( image ) #puts image.alpha? if image.colorspace == Magick::CMYKColorspace image.strip! image.add_profile("#{Rails.root}/lib/USWebCoatedSWOP.icc") image.colorspace == Magick::SRGBColorspace image.add_profile("#{Rails.root}/lib/sRGB.icc") end image end You can download the ICC files direct from Adobe at http://www.adobe.com/support/downloads/iccprofiles/iccprofiles_win.html The only thing I haven't been able to suss is how to