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-3.0.3.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file pngquant-3.0.3.tar.gz
.
File metadata
- Download URL: pngquant-3.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a46ec30c5b0c589f0ae9d003e1f7f97d35dbdf52ae32573e69cfbcf992f55461
|
|
MD5 |
e632dc41e941d1efe949793264451b73
|
|
BLAKE2b-256 |
2bbe9484b64a5b5276d94012a0bd1bae924e785bd98bf1fd4f2947316a5e1a55
|
File details
Details for the file pngquant-3.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pngquant-3.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1b02212272dbc027f9cbd2e977c0f03f834bf4a84ab940882a2e8760516c1759
|
|
MD5 |
6e4fe54598c467daf4710a1c877e9aa1
|
|
BLAKE2b-256 |
abdaccda14f6fe663d8227d7013b9e5fe64cc6a5fc9871e7e3a206794afa2109
|