I know the problem you mention, but I also thought that a recent version of PIL fixed it... I could be wrong though.
However - the other option would be to use ICC profiles to do color conversion. If you want REALLY accurate conversion, this is the way to go. I wrote a wrapper module called pyCMS that uses the littleCMS library to do ICC conversions. See: http://www.cazabon.com/pyCMS Kevin. ----- Original Message ----- From: "marc birot" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, June 17, 2005 6:01 AM Subject: [Image-SIG] Converting CMYK JPG image to RGB > Hello, > > I'm trying to convert CMYK Jpg files to RGB Jpg files using > (Image.open("cmyk_image.jpg").convert("RGB"))... > The result shows very wrong colours. > > After checking the Image-SIG archives (Aug 2004) i found the following : > > "...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! ..." > > Well, i tried and it does not work. The result i get is close to a > 'negative' of the original picture ( not too close). > > Any suggestion to help on this problem ? :) > > Marc > _______________________________________________ > Image-SIG maillist - [email protected] > http://mail.python.org/mailman/listinfo/image-sig > > _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig
