Reading a CMYK JPEG image

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
FlashFan
Posts: 13
Joined: 2011-01-05T03:41:09-07:00
Authentication code: 8675308

Reading a CMYK JPEG image

Post by FlashFan »

Hi guys

My program extracts images out of pdf files. There are many JPEG-images in pdf's that have cmyk colorspaces.
How can I read the image that the colors are correct?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Reading a CMYK JPEG image

Post by fmw42 »

convert -colorspace RGB -density XX image.pdf image.tiff

use the -density to set image quality/size for the output image

or you need to use profiles http://www.imagemagick.org/Usage/formats/#profiles
Post Reply