[Image-SIG] BUG? PIL does not recognise alpha channel in attached png file

Root root at smithpolglase.com
Tue Jan 26 06:00:13 CET 2010


The attached image shows an alpha channel when viewed with gimp or eog, 
but not when loading with PIL (version 1.1.6-3ubuntu1 as supplied with 
Ubuntu Karmic AMD64 Desktop):

 >>> import Image
 >>> im = Image.open("seabreeze.png")
 >>> print im.format
 >>> print im.size
(599, 264)
 >>> print im.mode

When I save the file using im.save(), and then open with gimp or eog, 
the alpha channel is removed (to be expected given that the mode is read 
as RGB).

Is this is a bug?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: seabreeze.png
Type: image/png
Size: 14741 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100126/4a74d822/attachment-0001.png>

More information about the Image-SIG mailing list