A Python Wrapper of pngquant
Project description
Pngquant is a command-line utility and a library for lossy compression of PNG images.
And This Library Is A Python Wrapper Of Pngquant
Install Pngquant
[pngquant 2.0 for ubuntu 12.04 not available](http://askubuntu.com/questions/469171/pngquant-2-0-for-ubuntu-12-04-not-available)
Install Python Wrapper Of Pngquant
pip install pngquant
Usage
import pngquant pngquant.config('~/pngquant/pngquant') pngquant.quant_image('~/pngquant/pngquant/pngquant.png')
Method
def config(self, quant_file=None, min_quality=None, max_quality=None, ndeep=None, ndigits=None, tmp_file=None): def quant_data(self, data=None, dst=None, ndeep=None, ndigits=None, delete=True): def quant_image(self, image=None, dst=None, ndeep=None, ndigits=None, override=True, delete=True): def quant_dir(self, dir=None, dst=None, ndeep=None, ndigits=None, override=True, delete=True, topdown=True):
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
pngquant-1.0.6.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file pngquant-1.0.6.tar.gz
.
File metadata
- Download URL: pngquant-1.0.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9a3c70cbadd26000fda3dfcec8ead1ffb65158a9ca37d78f11c6a335890ed1 |
|
MD5 | 414476001964b8c349fee87adcd55b61 |
|
BLAKE2b-256 | d62b3dbc11efb0df0a243ef01b410f441854cb7f7c8c667d1c059e62413c85d7 |
File details
Details for the file pngquant-1.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: pngquant-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78228dd6c078e714ffa9c5f58b2f9d6019f4f7408190c0ce351ca81724f098f5 |
|
MD5 | 35d350b9d9fee9e03978d1bcebd570de |
|
BLAKE2b-256 | a25a1451f35666f2a5ba7ca6d1c1e633fd43761170996edac7e9ed9cc711b437 |