[Image-SIG] Re: CMYK->RGB [was Re: PCX]

Fredrik Lundh fredrik at pythonware.com
Mon Aug 9 09:07:08 CEST 2004

Greg Hamilton wrote:

> Unfortunately I've found another curious quirk. I have a CMYK Jpeg file
> created with Photoshop which I need to convert to RGB. To do this I do
> something like:
> Image.open("cmyk_image.jpg").convert("RGB").save("rgb_image.jpg")
> The colour information in the resulting jpeg is wrong. Red is yellow,
> green is blue, grey is something akin to teal. Hopefully I'm doing
> something wrong.

Older versions of Photoshop generated broken CMYK files, and PIL
attempts to compensate for this.  try commenting out the following lines
in PIL/JpegImagePlugin.py, and let me know if it helps:

                    if self.mode == "CMYK" and self.info.has_key("adobe"):
                        rawmode = "CMYK;I" # Photoshop 2.5 is broken!


More information about the Image-SIG mailing list