Skip to content

Convert non-premultiplied alpha png file to its premultiplied equivalent.

Notifications You must be signed in to change notification settings

mattui/PNG-Alpha-Premultiplier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert non-premultiplied alpha png file to its premultiplied equivalent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.2%
  • Python 14.8%