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

Installation

You need to install libpng first, To install PyPngnq:

Debian:

apt-get install libpng-dev -y

FreeBSD:

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
nq.save('/tmp/test_pypngnq.png')
nq.close()

Project details


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 details)

Uploaded Source

File details

Details for the file pypngnq-0.1.3.tar.gz.

File metadata

  • Download URL: pypngnq-0.1.3.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypngnq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 366f9199a2a269ee1af28a6896cc553e3feae0aa169dfabc7a28f94d43eaea0d
MD5 626398c2d65f6c424457dc08d4c08d53
BLAKE2b-256 f915eb2bb911598b319a72537b1f88c3a0aad59df8aea9e746ed09d58c2b4b3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page