A Python Wrapper of pngquant
Project description
A Python Wrapper of pngquant
Installation
Install Pngquant First. See https://pngquant.org/
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, quant_deep=None, tmp_file=None): def quant_data(self, data=None, dst=None, delete=True): def quant_image(self, image=None, override=True, delete=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.0.tar.gz
(3.3 kB
view details)
Built Distribution
pngquant-1.0.0-py2.7.egg
(6.3 kB
view details)
File details
Details for the file pngquant-1.0.0.tar.gz
.
File metadata
- Download URL: pngquant-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc35fae6b4226712ea57558ef1c058943173a0a42a36b8df9df5926af8e2dc41 |
|
MD5 | 641ee854acc06edf4c14d2216d7300a2 |
|
BLAKE2b-256 | b64b86879eff529eaf895ab051a035259e84b22e21626b147f583526d705d7aa |
File details
Details for the file pngquant-1.0.0-py2.7.egg
.
File metadata
- Download URL: pngquant-1.0.0-py2.7.egg
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d60760fb0b820d23a260a0ae93f92b480d2766968d8d1a512571bc88e201ae94 |
|
MD5 | 864fd9d463bc1de70399a738075875b4 |
|
BLAKE2b-256 | a519d55357dd02dbcba4532589763d7bf7a57ebcec05687aa81f1665b59deff5 |