[Image-SIG] No "transparency" key in info for transparent PNG

Laura & Edward Cannon cannon.el at gmail.com
Mon Sep 29 04:07:47 CEST 2008


As far as I can tell, you should be able to determine whether or not
the image has transparency by looking at the mode. if it is RGBA or LA
it has transparency, otherwise it does not. If you need to know what
parts are transparent, look at the mask, obtained by im.split()

On Sun, Sep 28, 2008 at 4:30 PM, Szymon Kosok <szymon at mwg.pl> wrote:
> Hello,
>
> I have transparent PNG (when I open it in Photoshop it's transparent)
> and when I try to open it with PIL there is no "transparency" key in
> info. I've tried another transparent PNG (famfamfam icon) and no luck
> with that too. What can cause that problem? Mode is "RGBA".
>
> Best regards,
> Szymon
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>


More information about the Image-SIG mailing list