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):
Release files for pngquant 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pngquant-3.0.3.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pngquant-3.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size:11.3 kB
Release files / pngquant-3.0.3.tar.gz
| Download URL | pngquant-3.0.3.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a46ec30c5b0c589f0ae9d003e1f7f97d35dbdf52ae32573e69cfbcf992f55461
|
|
BLAKE2b-256 checksum How to use checksums |
2bbe9484b64a5b5276d94012a0bd1bae924e785bd98bf1fd4f2947316a5e1a55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / pngquant-3.0.3-py2.py3-none-any.whl
| Download URL | pngquant-3.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1b02212272dbc027f9cbd2e977c0f03f834bf4a84ab940882a2e8760516c1759
|
|
BLAKE2b-256 checksum How to use checksums |
abdaccda14f6fe663d8227d7013b9e5fe64cc6a5fc9871e7e3a206794afa2109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|