From: cristy Date: Sun, 3 Feb 2013 22:38:57 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=113690978aeb043a945b0cc323b606499efe4ebf;p=imagemagick --- diff --git a/coders/jpeg.c b/coders/jpeg.c index b3a540922..6f818e9d9 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -2128,6 +2128,8 @@ static MagickBooleanType WriteJPEGImage(const ImageInfo *image_info, jpeg_info.in_color_space=JCS_GRAYSCALE; } jpeg_set_defaults(&jpeg_info); + if (jpeg_info.in_color_space == JCS_CMYK) + jpeg_set_colorspace(&jpeg_info,JCS_YCCK); if ((jpeg_info.data_precision != 12) && (image->depth <= 8)) jpeg_info.data_precision=8; else