~ubuntu-branches/debian/squeeze/python-imaging/squeeze

« back to all changes in this revision

Viewing changes to libImaging/JpegDecode.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-11-20 19:22:59 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091120192259-n3iy0f17n5akogom
Tags: 1.1.7-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * The Python Imaging Library.
3
 
 * $Id: JpegDecode.c 2134 2004-10-06 08:55:20Z fredrik $
 
3
 * $Id$
4
4
 *
5
5
 * decoder for JPEG image data.
6
6
 *
189
189
            context->cinfo.out_color_space = JCS_GRAYSCALE;
190
190
        else if (strcmp(context->rawmode, "RGB") == 0)
191
191
            context->cinfo.out_color_space = JCS_RGB;
192
 
        else if (strcmp(context->rawmode, "CMYK") == 0)
 
192
        else if (strcmp(context->rawmode, "CMYK") == 0 ||
 
193
                 strcmp(context->rawmode, "CMYK;I") == 0)
193
194
            context->cinfo.out_color_space = JCS_CMYK;
194
195
        else if (strcmp(context->rawmode, "YCbCr") == 0)
195
196
            context->cinfo.out_color_space = JCS_YCbCr;