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

Fredrik Lundh fredrik at pythonware.com
Thu Oct 2 19:47:28 CEST 2008


Szymon Kosok wrote:

> 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".

the transparency key is used to mark a given color index as transparent 
for 8-bit (mode "P") images.  an RGBA image has a transparency value for 
each pixel (that's what the "A" in the mode name stands for).

</F>



More information about the Image-SIG mailing list