Skip to main content

A Python Wrapper of pngquant

Project description

Pngquant is a command-line utility and a library for lossy compression of PNG images.

And This Library Is A Python Wrapper Of Pngquant

Install Pngquant

Install Python Wrapper Of Pngquant

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


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

Uploaded Source

Built Distribution

pngquant-1.0.5-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pngquant-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7b888bf7080561ac74b040d64132e010b1485e76854166e9f5ad7075dde6b7bd
MD5 2427b0d32d36da5e73e5f12a01ed9773
BLAKE2b-256 9478ce528b8b1de0c5032ed538a235f32c890f6c9430c52a237e78be2921a2af

See more details on using hashes here.

File details

Details for the file pngquant-1.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pngquant-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 68271f49214fd0bed6f46649ebb316e66df2c267672b119bbafad729e5ff40f6
MD5 3e422513f6e7741969d03f64ea866d7b
BLAKE2b-256 0487ae053f66433957d40e845dc8a68416cf5c3e0040961d353e2d611b43dee8

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