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.4.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file pngquant-1.0.4.tar.gz
.
File metadata
- Download URL: pngquant-1.0.4.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afe66328dd2bea55c6ceb4229fd064dfd5518898529a9232f746b6251f7fd1e3 |
|
MD5 | 8ac169132aebee213dd1460e4990aaa5 |
|
BLAKE2b-256 | f89e7dd330fc909ccb7373efa21f353e0d78e35a336eef2091bc7523f7795ed7 |
File details
Details for the file pngquant-1.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: pngquant-1.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f933d4bb3123b1ef04ee42cf67ad45f3d6bcbc47350e8404b1eb4520781107f |
|
MD5 | 9810706927311d653328e8be8fcb755b |
|
BLAKE2b-256 | 2db7a85af69e528ac4480caec05416258a1de24c2f989f6dcaa03f240645df3b |