Converting image from sRGB to CMYK isn't working.

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
IYIaster
Posts: 1
Joined: 2015-02-11T13:38:11-07:00
Authentication code: 6789

Converting image from sRGB to CMYK isn't working.

Post by IYIaster »

I downloaded this sRGB image
http://www.wallpaperish.com/wp-content/ ... Meadow.jpg
I then tried to covert the image using Adobe's CMYK color profiles with the following command.

Code: Select all

"C:\Program Files\ImageMagick-6.9.0-Q16\convert.exe" Pink-Meadow.jpg -profile "C:\Program Files\ImageMagick-6.9.0-Q16\ICC Profiles\CMYK\USWebCoatedSWOP.icc" Pink-Meadow-cmyk.jpg
I then checked the colorspace using this command

Code: Select all

"C:\Program Files\ImageMagick-6.9.0-Q16\identify.exe" -verbose Pink-Meadow-cmyk.jpg | findstr Colorspace:
It still returns sRGB as the colorspace. I just started playing around with imagemagick and I'm sure I'm doing something wrong.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting image from sRGB to CMYK isn't working.

Post by fmw42 »

The colorspace will show in the Properties as a profile.

your profile --- "C:\Program Files\ImageMagick-6.9.0-Q16\ICC should probably be "C:\Program Files\ImageMagick-6.9.0-Q16\sRGB.icc
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converting image from sRGB to CMYK isn't working.

Post by snibgo »

Your input doesn't have an embedded profile. The effect of the first "-profile" is to declare the current profile, and embed it in the image. A second (and third and fourth...) "-profile" then converts to the new profile, replacing the embedded one.

So you need something like:

Code: Select all

convert Pink-Meadow.jpg -profile sRGB.icc USWebCoatedSWOP.icc p.jpg
p.jpg is now CMYK.
snibgo's IM pages: im.snibgo.com
Post Reply