pngimagemagickpython-imaging-librarypremultiplied-alpha

Method for converting PNGs to premultiplied alpha


Looking for some kind of simple tool or process for Windows that will let me convert one or more standard PNGs to premultiplied alpha.

Command line tools are ideal; I have easy access to PIL (Python Imaging Library) and Imagemagick, but will install another tool if it makes life easier.

Thanks!


Solution

  • I just released a bit of code in Python and in C that does what you are looking for. It's on github: http://github.com/maxme/PNG-Alpha-Premultiplier

    The Python version is based on the cssndrx response. C version is based on libpng.