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

Uploaded Source

Built Distribution

pngquant-1.0.7-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pngquant-1.0.7.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for pngquant-1.0.7.tar.gz
Algorithm Hash digest
SHA256 bea420002537fdeaf3316b0f06d334f61e89d69f04a30e42c08983f2c6016e15
MD5 ebf32bce251d7eabc64e4040c5817191
BLAKE2b-256 854a4ae7b47a25382215d64a826df19a7e332aca1782920fd17d5645d9236ae5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pngquant-1.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+

File hashes

Hashes for pngquant-1.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1bfa5f84ce9907ef8c175fd05809d1e44dacf9c7430523c5c12eb852216dfdc1
MD5 df4d1797851953c827a51288c4db1553
BLAKE2b-256 d691af2bd975285fe45bd84735ce409aa2fff1fb1b23f2edebbe3957d55246f6

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