[Image-SIG] transparency in palette mode ( "P" ) images

David Kwast david.kwast at gmail.com
Tue Oct 20 21:02:00 CEST 2009

On Tue, Oct 20, 2009 at 4:51 PM, Ivan Mincik <ivan.mincik at gista.sk> wrote:
> On Tue, Oct 20, 2009 at 8:33 PM, Laura & Edward Cannon
> <cannon.el at gmail.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?  If it is a bug, you have to do a workaround before or
after you open the PNG with PIL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20091020/af1925e7/attachment.htm>

More information about the Image-SIG mailing list