[Image-SIG] Re: CMYK->RGB [was Re: PCX]
by Fredrik Lundh other posts by this author
Aug 9 2004 7:07AM messages near this date
[Image-SIG] PCX
|
[Image-SIG] Re: PCX
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!
</F>
_______________________________________________
Image-SIG maillist - Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Greg Hamilton
Fredrik Lundh
Fredrik Lundh
Fredrik Lundh
|