Precompiled binaries for pngquant, the lossy PNG compressor based on libimagequant.
Reason this release was yanked:
missing license file
Project description
pngquant 2
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
- based on a portable libimagequant library
- C99 with no workarounds for legacy systems or compilers (apart from Visual Studio)
- multicore support (via OpenMP) and Intel SSE optimizations
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:
-
Under GPL v3 or later with an additional copyright notice that must be kept for the older parts of the code.
-
Or a commercial license for use in non-GPL software (e.g. closed-source or App Store distribution). You can get the license via Super Source. Email kornel@pngquant.org if you have any questions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pngquant_cli-2.17.0.post4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd241949bdff67ec878aaef3efb3448d216d33739e4e2ce470c49e18272ee451 |
|
MD5 | 3b623f7514f80d8700a08d2fe1bf8414 |
|
BLAKE2b-256 | e6a9a9a3b4482a7bd57ac24ae386a44dfcf900ac47fb7d257af99373a890c53f |
Hashes for pngquant_cli-2.17.0.post4-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33dc38f3a0e6b18976cf26682de432d2b07b73a752f064d64127b3ad7d1b2d11 |
|
MD5 | ef3cbf64483ea037a1198c5fa5b56e02 |
|
BLAKE2b-256 | 99d579374503a974da70c3b3bbd4b879e179d3b905b3160ad9d1ea6e717e5806 |
Hashes for pngquant_cli-2.17.0.post4-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d443f09bfcca228524b46c4fdab09f30a26cdc2f264c87a81dfe976dbd091e |
|
MD5 | 573d655c5e26f858793397424fe08f8b |
|
BLAKE2b-256 | a28f1bdc8a6c47796c3d6ec88b10ab2bb97104dd9e9f3636f821f76aaf470324 |
Hashes for pngquant_cli-2.17.0.post4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a622ddbef3fd185425a672860d117d6de6b38c99c72e13efd2582b3a57ad41 |
|
MD5 | f1a1612c6bdddf074bec295743bf2519 |
|
BLAKE2b-256 | 1c756c115d96a62f67df532babbb48f171b88a9857f01f6d2ff9565bf78b77b4 |
Hashes for pngquant_cli-2.17.0.post4-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55692c4312692c73e5a3087af619885320d9d715f1995f87ea6e386b1ef361c |
|
MD5 | ac6d8d9f6f39c740e17f79c8f8a5253e |
|
BLAKE2b-256 | ee77aa1518747465f1beead1d94c85c8e4ba52dbaf8b2699a2c088002bffb851 |
Hashes for pngquant_cli-2.17.0.post4-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637913b7c75fb10e0240b7d51fa4e954843e229cb397797d7fcd102f75f9f574 |
|
MD5 | 86e1441a9b93c0a2a03af74f7ed54033 |
|
BLAKE2b-256 | 60b119a0154524ff526d32b920b4352577baee9a5169b40205938320c2a02046 |