Skip to main content

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):

Project details


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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pngquant-1.0.1-py2.7.egg (6.9 kB view details)

Uploaded Source

File details

Details for the file pngquant-1.0.1.tar.gz.

File metadata

  • Download URL: pngquant-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pngquant-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e189ec1ee94203a529a24746e3ed20006e5b2b1eec2b63e0898fd88ef52df4a4
MD5 c11654e9c87cd30375bbb186e90d3eea
BLAKE2b-256 bfbbc772ef2f5ddd9f7d26a21f3421e871305b09d1a503e2b08762670607dbe0

See more details on using hashes here.

File details

Details for the file pngquant-1.0.1-py2.7.egg.

File metadata

File hashes

Hashes for pngquant-1.0.1-py2.7.egg
Algorithm Hash digest
SHA256 d848e67c6504df2dada52cdda72005a6d6fdf67e6a0e6dc58260c86950929be1
MD5 ab871adecd5a8a494a4b349cea1dff5b
BLAKE2b-256 7efeeb584c30305578bca6e7215cd962280fbc747c9f36ede430d361680f4c8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page