Skip to main content

a utility for optimizing PNG files

Project description

What is PyPngnq?

PyPngnq is a tool for quantizing PNG images in RGBA format


You need to install libpng first, To install PyPngnq:


apt-get install libpng-dev -y


cd /usr/ports/graphics/png
make install clean

To 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'/tmp/test_pypngnq.png')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pypngnq, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pypngnq-0.1.3.tar.gz (30.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page