Page 1 of 1

CMYK to RGB

Posted: 2008-02-27T02:38:46-07:00
by digilover
Using iMagick I've converted a CMYK EPS file to RGB JPEG. The colours however, are quite different after conversion with for example the main dark blue being converted to a more vibrant blue.

Is there anything I need to bear in mind when converting from CMYK to RGB? I've seen people talk about color profiles and colorspaces but to be honest I don't know much about them.

I tried explicitly setting the colorspace using:

Code: Select all

$im->setImageColorspace(Imagick::COLORSPACE_RGB);
but no joy.

I've not posted in the iMagick forum as I think this is probably more a fundamental ImageMagick question than it is an iMagick question but correct me if I'm wrong.

Can anyone shed any light on why I'm getting the color transformations and what I can do to prevent it?

Thanks,

James.

Re: CMYK to RGB

Posted: 2008-02-27T06:18:54-07:00
by digilover
After some more searching I found some notes on getting Ghostscript to convert CMYK to RGB more effectively as apparently the default conversion isn't very good. I checked out this page: http://john.ukmn.com/2007/06/19/imagema ... yk-to-rgb/ but unfortunately it didn't work for me though I have a feeling I could be missing something.

Any advice appreciated.

James.

Re: CMYK to RGB

Posted: 2008-02-27T17:01:19-07:00
by digilover
Please ignore my stupidity, I edited the wrong file. The -dUseCIEColour command line flag worked a treat after all.

James.

Re: CMYK to RGB

Posted: 2008-03-10T13:15:05-07:00
by 2levelsabove
Yes that advice worked great. I was having same issues with converting PDF's to JPEGS.



Thanks

Re: CMYK to RGB

Posted: 2008-04-01T03:51:08-07:00
by mondobizzaro
How do I convert a jpeg image from cmyk to rgb if I have to use the command line tools?

Re: CMYK to RGB

Posted: 2008-04-01T06:36:12-07:00
by magick
To properly convert a CMYK JPEG to RGB you need color profiles. The fastest method is simply:
  • convert cmyk.jpg -colorspace rgb rgb.jpg

Re: CMYK to RGB

Posted: 2008-04-01T06:58:53-07:00
by mondobizzaro
Great, thanks!