Convert non-premultiplied alpha png file to its premultiplied equivalent.
C Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
NPMApng2PMApng.c
NPMApng2PMApng.py
README
RGBA2AAAA.c add RGBA2AAAA tool Aug 26, 2011
configure.mk

README

What ?
======
This tool permits to convert non-premultiplied alpha png file to its
premultiplied equivalent.

Note: The python version is 100 times slower than the C version.

Requirements
============
 - Python version requires numpy and PIL
 - C version requires libpng

How to run the Python version
=============================
$ python NPMApng2PMApng.py in.png out.png


How to compile and run the C version
====================================
edit the configure.mk file to make CONF_INCS and CONF_LIBS links to
your libpng installation directory.

$ make
$ ./NPMApng2PMApng in.png out.png