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 hashes)
Built Distribution
pngquant-1.0.0-py2.7.egg
(6.3 kB
view hashes)