ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved