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

Release files for pngquant 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pngquant 3.0.3
File Size Uploaded
pngquant-3.0.3.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pngquant 3.0.3
File Interpreter ABI Platform
pngquant-3.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size:11.3 kB

Release files / pngquant-3.0.3.tar.gz

Download URL pngquant-3.0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a46ec30c5b0c589f0ae9d003e1f7f97d35dbdf52ae32573e69cfbcf992f55461
BLAKE2b-256 checksum
How to use checksums
2bbe9484b64a5b5276d94012a0bd1bae924e785bd98bf1fd4f2947316a5e1a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / pngquant-3.0.3-py2.py3-none-any.whl

Download URL pngquant-3.0.3-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1b02212272dbc027f9cbd2e977c0f03f834bf4a84ab940882a2e8760516c1759
BLAKE2b-256 checksum
How to use checksums
abdaccda14f6fe663d8227d7013b9e5fe64cc6a5fc9871e7e3a206794afa2109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 release files

3.0.2

2 release files

1.0.13

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page