a utility for optimizing PNG files
Project description
What is PyPngnq?
PyPngnq is a tool for quantizing PNG images in RGBA format
Installation
You need to install libpng first, To install PyPngnq:
Debian:
apt-get install libpng-dev -yFreeBSD:
cd /usr/ports/graphics/png make install cleanTo install PyPngnq:
pip install PyPngnq
How to use it?
Following is a simple example:
# -*- coding: utf8 -*- from pypngnq import PngNQ nq = PngNQ('/tmp/test.png') #print nq.config nq.use_floyd = False nq.save('/tmp/test_pypngnq.png') nq.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypngnq-0.1.3.tar.gz
(30.6 kB
view hashes)