Skip to main content

Precompiled binaries for pngquant, the lossy PNG compressor based on libimagequant.

Project description

pngquant 2 CI

pngquant is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format with alpha channel (often 60-80% smaller than 24/32-bit PNG files). Compressed images are fully standards-compliant and are supported by all web browsers and operating systems.

This is the official pngquant repository. The compression engine is also available as an embeddable library.

Usage

  • batch conversion of multiple files: pngquant *.png
  • Unix-style stdin/stdout chaining: … | pngquant - | …

To further reduce file size, try optipng, ImageOptim, or zopflipng.

Features

  • High-quality palette generation
  • advanced quantization algorithm with support for gamma correction and premultiplied alpha
  • unique dithering algorithm that does not add unnecessary noise to the image
  • Configurable quality level
  • automatically finds required number of colors and can skip images which can't be converted with the desired quality
  • Fast, modern code

Options

See pngquant -h for full list.

--quality min-max

min and max are numbers in range 0 (worst) to 100 (perfect), similar to JPEG. pngquant will use the least amount of colors required to meet or exceed the max quality. If conversion results in quality below the min quality the image won't be saved (if outputting to stdin, 24-bit original will be output) and pngquant will exit with status code 99.

pngquant --quality=65-80 image.png

--ext new.png

Set custom extension (suffix) for output filename. By default -or8.png or -fs8.png is used. If you use --ext=.png --force options pngquant will overwrite input files in place (use with caution).

-o out.png or --output out.png

Writes converted file to the given path. When this option is used only single input file is allowed.

--skip-if-larger

Don't write converted files if the conversion isn't worth it.

--speed N

Speed/quality trade-off from 1 (slowest, highest quality, smallest files) to 11 (fastest, less consistent quality, light comperssion). The default is 4. It's recommended to keep the default, unless you need to generate images in real time (e.g. map tiles). Higher speeds are fine with 256 colors, but don't handle lower number of colors well.

--nofs

Disables Floyd-Steinberg dithering.

--floyd=0.5

Controls level of dithering (0 = none, 1 = full). Note that the = character is required.

--posterize bits

Reduce precision of the palette by number of bits. Use when the image will be displayed on low-depth screens (e.g. 16-bit displays or compressed textures in ARGB444 format).

--strip

Don't copy optional PNG chunks. Metadata is always removed on Mac (when using Cocoa reader).

See man page (man pngquant) for the full list of options.

License

pngquant is dual-licensed:

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_cli-2.17.0.post5.tar.gz (102.8 kB view details)

Uploaded Source

Built Distributions

pngquant_cli-2.17.0.post5-py3-none-win_amd64.whl (386.6 kB view details)

Uploaded Python 3 Windows x86-64

pngquant_cli-2.17.0.post5-py3-none-win32.whl (345.2 kB view details)

Uploaded Python 3 Windows x86

pngquant_cli-2.17.0.post5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (812.5 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

pngquant_cli-2.17.0.post5-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (774.4 kB view details)

Uploaded Python 3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

pngquant_cli-2.17.0.post5-py3-none-macosx_10_7_x86_64.whl (373.7 kB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

Details for the file pngquant_cli-2.17.0.post5.tar.gz.

File metadata

  • Download URL: pngquant_cli-2.17.0.post5.tar.gz
  • Upload date:
  • Size: 102.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pngquant_cli-2.17.0.post5.tar.gz
Algorithm Hash digest
SHA256 bc4d19c228e4972b8d6336b73b710f40f4107d4dd39585c3f0ebbb3296b90569
MD5 107d33b61a9c628831613d9c58e425c0
BLAKE2b-256 82ab6c8586e6d6117a193f610df943db7db2c60e3f38f3e25b2bee357e064c35

See more details on using hashes here.

File details

Details for the file pngquant_cli-2.17.0.post5-py3-none-win_amd64.whl.

File metadata

  • Download URL: pngquant_cli-2.17.0.post5-py3-none-win_amd64.whl
  • Upload date:
  • Size: 386.6 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pngquant_cli-2.17.0.post5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d2983bd83ee18df36da0dcc6959d45c6993f70f3d11ff13fedca10c68775cb8f
MD5 8990e3d1cef7739084f4ab887078fa4b
BLAKE2b-256 48851e62d4af7fc72c73ad3f09b1cb26cde4dbf9cdba5a4242f42024a002334d

See more details on using hashes here.

File details

Details for the file pngquant_cli-2.17.0.post5-py3-none-win32.whl.

File metadata

  • Download URL: pngquant_cli-2.17.0.post5-py3-none-win32.whl
  • Upload date:
  • Size: 345.2 kB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pngquant_cli-2.17.0.post5-py3-none-win32.whl
Algorithm Hash digest
SHA256 ef56ef51714c381704c0a43ede9424c3d5df16e00758066814876ef33374926f
MD5 2199f21e63f2ac888ca907a3a02871bb
BLAKE2b-256 c0d7ecd2a89e55cfd1e9821f698e43b6706efaa1802c1fdff758d24ff58ebfda

See more details on using hashes here.

File details

Details for the file pngquant_cli-2.17.0.post5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: pngquant_cli-2.17.0.post5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 812.5 kB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pngquant_cli-2.17.0.post5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 52558bc4b822050cd6bc29e5c4e4e417b0b529f77f9a9450fd612e6a81f27403
MD5 6eb206646ae08ebe18959300d0a41068
BLAKE2b-256 6c74e009b3874c42d0fe88f9154a8b495f837516fb28a0570badd9df827fec90

See more details on using hashes here.

File details

Details for the file pngquant_cli-2.17.0.post5-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pngquant_cli-2.17.0.post5-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9848caaec973cf755a2b47c0f7698387ff1c29de7cf85442bb2399fcefe23c99
MD5 cf59b285f4613473908e5bbe1cb87a7f
BLAKE2b-256 e49baf2537f11bf02174978e6dfe821ba0255b02f57f56a9361ebb5c55c39083

See more details on using hashes here.

File details

Details for the file pngquant_cli-2.17.0.post5-py3-none-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: pngquant_cli-2.17.0.post5-py3-none-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 373.7 kB
  • Tags: Python 3, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pngquant_cli-2.17.0.post5-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a6ee97d54e4fd968308ca3da55d46574d4100f053809c356fe5bbbfdccd13f9d
MD5 11d6c05a42d3cbfb2358ea76f119772e
BLAKE2b-256 e6ae8495230323c6865a829273687836b1520f5e7efb96fd3ba44f6144f855dc

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