Search code examples
linuxperlcolorsimagemagickcolor-space

How do I convert an image with colorspace YCbCr to CMYK?


I've got images that have a YCbCr colorspace. But I want to make them CMYK. How do I do that? A Perl solution would be great. A command line (Ubuntu) solution would be good.

I've tried using ImageMagick but my images come out mostly black -- in fact it looks like the colors were reversed. Here is a sampling of commands I've tried:

convert -colorspace CMYK start.jpg end.jpg
convert -colorspace cmyk start.jpg end.jpg
convert -profile ISOcoated_v2_eci.icc -colorspace CMYK start.jpg end.jpg
convert -profile AdobeRGB1998.icc -profile ISOcoated_v2_eci.icc -colorspace CMYK start.jpg end.jpg

Solution

  •     convert YCbCr.jpg -colorspace cmyk cmyk.jpg