Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pngquant-3.0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pngquant-3.0.3-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pngquant-3.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pngquant-3.0.3.tar.gz
Algorithm Hash digest
SHA256 a46ec30c5b0c589f0ae9d003e1f7f97d35dbdf52ae32573e69cfbcf992f55461
MD5 e632dc41e941d1efe949793264451b73
BLAKE2b-256 2bbe9484b64a5b5276d94012a0bd1bae924e785bd98bf1fd4f2947316a5e1a55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pngquant-3.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pngquant-3.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b02212272dbc027f9cbd2e977c0f03f834bf4a84ab940882a2e8760516c1759
MD5 6e4fe54598c467daf4710a1c877e9aa1
BLAKE2b-256 abdaccda14f6fe663d8227d7013b9e5fe64cc6a5fc9871e7e3a206794afa2109

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 files

3.0.2

2 files

1.0.13

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page