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
Re: [Image-SIG] transparency in palette mode ( "P" ) images
by Ivan Mincik other posts by this author
Oct 20 2009 1:27PM messages near this date
Re: [Image-SIG] transparency in palette mode ( "P" ) images | Re: [Image-SIG] transparency in palette mode ( "P" ) images
On Tue, Oct 20, 2009 at 9:02 PM, David Kwast <david.kwast@[...].com>  wrote:
>  On Tue, Oct 20, 2009 at 4:51 PM, Ivan Mincik <ivan.mincik@[...].sk> wrote:
> >
> > On Tue, Oct 20, 2009 at 8:33 PM, Laura & Edward Cannon
> > <cannon.el@[...].com> wrote:
> > > Hm.. you seem to be right. One thing you might do is im =
> > > Image.open("test.png").convert("RGBA") which seems to solve the
> > > transparency problem, at the expense of a slightly larger image file.
> >
> > No, even if using convert("RGBA") I get incorrect result :(
> 
>  Maybe the problem is in the decoder. Can't you use a PNG in RGBA mode
>  instead of P mode?

No, I need to process images in P mode and have resulting image also in P mode.

 If it is a bug, you have to do a workaround before or
>  after you open the PNG with PIL.

I do not see possibility of any workaround. Converting to RGBA does not help.
_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Ivan Mincik
Ivan Mincik
Laura & Edward Cannon
Ivan Mincik
Ivan Mincik
David Kwast

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