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.3.tar.gz
(4.6 kB
view details)
Built Distribution
pngquant-1.0.3-py2.7.egg
(9.1 kB
view details)
File details
Details for the file pngquant-1.0.3.tar.gz
.
File metadata
- Download URL: pngquant-1.0.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d44518cf6e930ab134d8e10adfcb5e33b96b23f7b700516a97d4ae05e037e0e |
|
MD5 | 7aadb3e65ae0baf49f5e053c0659c7c6 |
|
BLAKE2b-256 | 24ab38c401d7234239421115296dffc24c7971cc60dcd70b2a35f575da0a2638 |
File details
Details for the file pngquant-1.0.3-py2.7.egg
.
File metadata
- Download URL: pngquant-1.0.3-py2.7.egg
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e05df0fc6727aee79bb0fa3bb25e4ee15a52712e21dcea3fcae889d0fd42794 |
|
MD5 | f8bd9131d1b50bbbb9d4ca160afc5c5b |
|
BLAKE2b-256 | 95249a64705b56de38e33bc2c7dfea8b79b3791fa6cd95cbd6e4574551585015 |