diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-04-02 16:52:20 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-04-02 16:52:20 +0000 |
commit | cd3d09458cd805aad1c334fce9998af2164ce555 (patch) | |
tree | 36a9071387112bb8634936d2744412e313c761a6 /graphics/pngquant/pkg-descr | |
parent | 82151969a7e765675a57233558f4e8009bc3bb07 (diff) | |
download | ports-cd3d09458cd805aad1c334fce9998af2164ce555.tar.gz ports-cd3d09458cd805aad1c334fce9998af2164ce555.zip |
add pngquant 0.95
convert 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs
PR: 34734
Submitted by: Alex Hayward <xelah@xelah.com>
Notes
Notes:
svn path=/head/; revision=57221
Diffstat (limited to 'graphics/pngquant/pkg-descr')
-rw-r--r-- | graphics/pngquant/pkg-descr | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/pngquant/pkg-descr b/graphics/pngquant/pkg-descr new file mode 100644 index 000000000000..47d9294728a1 --- /dev/null +++ b/graphics/pngquant/pkg-descr @@ -0,0 +1,40 @@ +pngquant is a simple tool with one purpose: convert 32-bit RGBA PNGs into +8-bit RGBA-palette PNGs (or fewer than 8 bits, if you want), via quantization +and either ordered or diffusion (Floyd-Steinberg) dithering. The fact that +you can also use it on RGB or even palette images (e.g., to further color- +reduce them to 16 colors or whatever) is just a nice little bonus. + +The current version is fully functional in the sense that it can do: + + - nice reduction of all PNG image types to 256-color (or smaller) palette + - automatic optimization of tRNS chunks + - batch conversion of multiple files (e.g., "pngquant 256 *.png") + - Unix-style command-line filtering (e.g., "... | pngquant 16 | ...") + +...on at least Unix and Win32. It should be pretty easy to port to almost +any other platform with a command-line interface and unstructured (stream- +oriented) files, including VMS but probably not VM or MVS. + +It does still lack a few features: + + - no ancillary chunk preservation (except gAMA) + - no preservation of significant-bits info after rescaling (sBIT chunk) + - no mapfile support + - no "native" handling of 16-bit-per-sample files or gray+alpha files + (i.e., all samples are truncated to 8 bits and all images are promoted + to RGBA before quantization) + +These issues will be addressed in a post-1.0 release. + +By the way, be sure to check "before" and "after" file sizes, preferably with +pngcrush (http://pmt.sourceforge.net/pngcrush/); dithered palette images may +be four times smaller to begin with, but they don't compress nearly as well +as grayscale and truecolor images. Some images, such as Henri Sivonen's alpha +button (http://www.pp.htv.fi/hsivone1/css-test/bitmapstyle.html), can be made +smaller as full 32-bit RGBA images (4076 bytes in this case) than as either +FS-dithered palette (4550 bytes) or ordered-dither palette (4482 bytes) images. + +WWW: http://www.libpng.org/pub/png/apps/pngquant.html + +Greg Roelofs +newt@pobox.com |