Re: png transparency with PIL
- From: Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss@xxxxxxxxxxxxxxx>
- Date: Fri, 23 Nov 2007 19:24:37 +0100
Robin Becker wrote:
I'm trying to determine the transparency information for a png
image. With gif images I can determine the colour that is used for
transparent areas using im.info['transparency']. For the png
images of interest there is no such entry in the info dict. I
assume that's because of the way png does transparency. I'm
guessing I need the alpha channel, but is there a way to get hold
of it?
For accessing the alpha channel, there is an RGBA mode for PNG
files:
http://www.pythonware.com/library/pil/handbook/format-png.htm
Regards,
Björn
--
BOFH excuse #58:
high pressure system failure
.
- Follow-Ups:
- Re: png transparency with PIL
- From: Robin Becker
- Re: png transparency with PIL
- References:
- png transparency with PIL
- From: Robin Becker
- png transparency with PIL
- Prev by Date: png transparency with PIL
- Next by Date: Re: Python too complex ?!?!?!
- Previous by thread: png transparency with PIL
- Next by thread: Re: png transparency with PIL
- Index(es):
Relevant Pages
|