colors in CMYK -> sRGB conversion

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
fxn

colors in CMYK -> sRGB conversion

Post by fxn »

I am converting images from CMYK to sRGB. The command I use is

convert -colorspace sRGB -modulate 110 -quality 100 mona-lisa-cmyk.jpg mona-lisa-srgb.jpg

but the resulting image is too dark. See for example the original:

http://share.hashref.com/tmp/mona-lisa-cmyk.jpg

and the conversion:

http://share.hashref.com/tmp/mona-lisa-srgb.jpg

very different indeed.

I've tried several values for -modulate without luck, but I am not familiar with images and do not really know what else could I tune.

Could anyone help?
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: colors in CMYK -> sRGB conversion

Post by markmarques »

hi ...
if the original image is CMYK as far as I know you should define the colorspace CMYK before , apply whatever operation you need
and then define the RGB colorspace ...

something like:
convert -colorspace CMYK mona_lisa.cmyk.jpg -modulate 110 -colorspace RGB monalisa_rgb.jpg

PS: ( I do not have any image in cmyk so I can not try this) but give it a try ...
fxn

Re: colors in CMYK -> sRGB conversion

Post by fxn »

Thanks, I tried your command but didn't make a difference.

In case you'd like to play around, this image uses CMYK

http://share.hashref.com/tmp/mona-lisa-cmyk.jpg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: colors in CMYK -> sRGB conversion

Post by fmw42 »

You should get better results using profiles. see http://www.imagemagick.org/Usage/formats/#profiles
Post Reply