Using IM 6.8.2-3 to convert a subsampled (YCbCr) JPEG to CMYK, I get a raw-CMYK JPEG with all channels except the Cyan channel subsampled. That's kind of a silly thing to do, and makes most images pretty blurry.
Code: Select all
$ convert logo: -quality 80 1.jpg
$ convert 1.jpg -colorspace CMYK 2.jpg
$ identify -verbose 1.jpg|grep sampling
jpeg:sampling-factor: 2x2,1x1,1x1
$ identify -verbose 2.jpg|grep sampling
jpeg:sampling-factor: 2x2,1x1,1x1,1x1
Code: Select all
jpeg_set_defaults(&jpeg_info);
if (jpeg_info.in_color_space == JCS_CMYK) {
jpeg_set_colorspace(&jpeg_info,JCS_YCCK);
}