How correctly to convert CMYK in 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
loover

How correctly to convert CMYK in RGB?

Post by loover »

(CMYK without profile)I write

Code: Select all

convert.exe 03.tif -colorspace RGB -profile sRGB.icc 03.jpg
But colours of the image in RGB look so as if the profile was not applied.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How correctly to convert CMYK in RGB?

Post by fmw42 »

I am no expert on this, but try -colorspace RGB before the input image. I have seen other posts about this. So you can search the archives also.
loover

Re: How correctly to convert CMYK in RGB?

Post by loover »

How to define colour model of the image?
I use ImageMagick together with PHP and i need something like that:

Code: Select all

if (colormode == rgb)
{
 ...
}
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How correctly to convert CMYK in RGB?

Post by anthony »

loover wrote:(CMYK without profile)I write

Code: Select all

convert.exe 03.tif -colorspace RGB -profile sRGB.icc 03.jpg
But colours of the image in RGB look so as if the profile was not applied.

You need one profile if the image contains a profile

you need two profiles if the image does not contain the original profile!

see http://www.imagemagick.org/Usage/formats/#color_profile
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply