A Python Wrapper of pngquant
Project description
A Python Wrapper of pngquant
Install Pngquant First. See https://pngquant.org/
Installation
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.2.tar.gz
(4.3 kB
view details)
Built Distribution
pngquant-1.0.2-py2.7.egg
(8.2 kB
view details)
File details
Details for the file pngquant-1.0.2.tar.gz
.
File metadata
- Download URL: pngquant-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72b65547f6b6cddfcb48250e570434a0e21c3700363a12c4274d9a9bee726573 |
|
MD5 | b827ff68c16e3ce0f23a32d9296e51e5 |
|
BLAKE2b-256 | 6bc396a8bb7e96ce04d3162a77a4003d28739921e9c5fc3c5af1c602a0124f30 |
File details
Details for the file pngquant-1.0.2-py2.7.egg
.
File metadata
- Download URL: pngquant-1.0.2-py2.7.egg
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f409ae2018ed6948d407bc8a1864be2a15826138624c0c669cb44abf7553f23 |
|
MD5 | a26be4a7d1bc7f7e6ef47c640134d699 |
|
BLAKE2b-256 | 9de800d97a694ca81d58f4a5fde4d03dc283307ac557e0b42212f2b14b547aae |