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

Uploaded Source

Built Distribution

pngquant-1.0.8-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pngquant-1.0.8.tar.gz
Algorithm Hash digest
SHA256 deddedac715b0b4fe605b9e4f2d2d0885d8049b19022574180116d05ec40bad6
MD5 ccda2300076e399ef01f6b080071fb7a
BLAKE2b-256 2c537fd97168c9a6a2df42e00fbe40afe1b2f9788905fdab837f38d4f563b2fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pngquant-1.0.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.8 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-1.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 21be7a5847b7d15867afeefa79048b7c8395379430ef7cd159b58071429d7fa8
MD5 3af6e371d243dfba21708208e5e3039a
BLAKE2b-256 b2336c68fccb55bf3a43f4e48d08b523f0e92c0a19778ad0aa414de9f54bc092

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