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

Oliver Tonnhofer olt at bogosoft.com
Thu Feb 17 13:53:34 CET 2011

On 17.02.2011, at 13:39, Joao S. O. Bueno wrote:
>> It's questionable if this is a serious bug. It's more a missing feature (read alpha from paletted images).
> Since the alpha in paletted PNG images is in the PNG specification,
> and PIL does support alpha I am quite certain this can be named a
> bug. And a severe misfeature.

But by far not a serious one. Or how do you call bugs that crash your system then?

>> 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
> I appreciate your work -- congratulations for the effort. Have you
> addressesd this particular issue of palleted alpha support?

Yes, it should load the alpha information for paletted images. Let me know if you have any issues with it, I would count that as a bug of my patch :)


More information about the Image-SIG mailing list