This photo can't be convert From 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
carol_sun
Posts: 19
Joined: 2009-11-06T00:49:59-07:00
Authentication code: 8675309

This photo can't be convert From CMYK to RGB.

Post by carol_sun »

After converting, the image's colorspace is still CMYK.
Other photos could be convert successfully, only this photo failed.
How to convert the "sepecial" photo ?

Code: Select all

~/ImageMagick/bin$ ./convert  file_4.jpg -profile SRGBSPAC.ICM 1.jpg 
~/ImageMagick/bin$ ./identify -verbose 1.jpg | grep Colorspace
    Colorspace: CMYK

ps: I got "SRGBSPAC.ICM" at http://www.imagemagick.org/download/del ... ofiles.zip
please use Firefox or other browsers except IE to open the following picture , because IE can't deal with CMYK image.
Image
http://www.ajrice.com/UploadFile/Image/file_4.jpg
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: This photo can't be convert From CMYK to RGB.

Post by Drarakel »

You can convert the pictures that way only if in the file is already the correct source color profile. If there's no embedded source color profile, you have to specify it manually (for CMYK pictures in such cases, use a generic SWOP profile, or e.g. "US Web Coated SWOP"). So, you have to use something like this:
convert file_4.jpg -profile USWebCoatedSWOP.icc -profile SRGBSPAC.ICM 1.jpg
See also here for more about the color profiles:
http://www.imagemagick.org/Usage/formats/#color_profile
carol_sun
Posts: 19
Joined: 2009-11-06T00:49:59-07:00
Authentication code: 8675309

Re: This photo can't be convert From CMYK to RGB.

Post by carol_sun »

Dear Drarakel, it works, thank you very much!

By the way, for CMYK pictures in such cases, use a generic SWOP profile, Dear administrators, why don't you put USWebCoatedSWOP.icc file into "http://www.imagemagick.org/download/del ... ofiles.zip"
Post Reply