[Image-SIG] Serious bug in PIL's handling of PNG images

Oliver Tonnhofer olt at bogosoft.com
Thu Feb 17 07:56:44 CET 2011


On 14.02.2011, at 12:50, Ivan Tkatchev wrote:
> Please see the relevant discussion and patch here:
> http://stackoverflow.com/questions/4217869/python-pil-all-areas-of-png-with-opacity-0-have-their-opacity-set-to-1
> This is a very serious bug that affects many upstream packages. 

It's questionable if this is a serious bug. It's more a missing feature (read alpha from paletted images).

> It would be nice if a fix made its way into the official PIL release so that users would not have to suffer.

I did some contributions to improve the PNG handling and there are already in the development trunk for 1.2. You can get a source package here: https://bitbucket.org/olt/pil-2009-raclette/get/tip.tar.bz2


More information about the Image-SIG mailing list