Short: PNG quantitizer Author: Stuart Coyle Uploader: djbase gmx de (DJBase) Type: gfx/misc Version: 0.41 Architecture: m68k-amigaos Distribution: Aminet Ported by DJBase - http://www.djbase.de Compiled with GCC 3.3.3 on an Amiga 4000T / 68060-50. ------------------------------------------------------------------------------ PNGNQ - PNG NEUQUANT VERSION 0.41 USAGE: pngnq [-vfhV][-s sample factor][-n colours][input files] options: -v Verbose mode. Prints status messages. -f Force ovewriting of files. -s Sample factor. The neuquant algorithm samples pixels stepping by this value. -n Number of colours the quantized image is to contain. Range: 2 to 256. Defaults to 256. input files: The png files to be processed. Defaults to standard input if not specified. -V Print version number and library versions. -h Print this help. Quantizes a 32-bit RGBA PNG image to an 8 bit RGBA palette PNG using the neuquant algorithm. The output file name is the input file name extended with "-nq8.png" NOTES: Pngnq is a tool for quantizing PNG images in RGBA format. Pngnq is an adaptation by Stuart Coyle of Greg Roelf's pnqquant program using Anthony Dekker's neuquant algorithm. Pngnq exists because I needed a lot of png images in RGBA format to be quantized. After some searching, the only tool I could find that worked was pngquant. I tried pngquant but found that the median cut algorithm that it uses, with or without dithering, gave inferior looking results to the neuquant algorithm. You can see the difference demonstrated on the neuquant web page: http://members.ozemail.com.au/~dekker/NEUQUANT.HTML. The program was written to fulfill the specific needs of the small project I was working on, and as such does not have all the functionality one could want. I use Greg Roelf's png reading and writing code unchanged for the most part. The pngnq source code includes neuquant32, which is an extension of Anthony Dekker's neuquant, to make it handle 4 channels of pixel data. Specifically the things that it lacks are: I want to change the error measure to use CIE u' v' color space and see if results are visually better. No dithering. Limited image input formats. I am not doing much checking on the image pixel depth etc. This has not been tested on platforms other than GNU/Linux on x86 and AMD64, BSD on x86 and Mac OSX 10.4 on Intel. Copyright (c) Stuart Coyle 2004-2006 See LICENCES for details of copyrights held on this program. PNGCOMP - PNG COMPARISON VERSION 0.1 USAGE: pngcomp [-vVh] image1.png image2.png options: v - verbose, does nothing as yet. V - version, prints version information. h - help, prionts this message. inputs: image1.png and image2.png are the two images that are to be compared. it is required that they be the same size. This program give some basic statistics about the difference between two images. It was created as a measure of various color quantization methods. NOTES: The stats created by this program are purely based on the Euclidean distance in RGBA space between the pixels of the images. Later versions will include different measures such as CIE color space measurements and filters for perception models. The error calculation used reflects the percieved quality of images only roughly. To determine what image is better nothing can surpass having a look for yourself! Copyright (c) Stuart Coyle 2004-2006 See LICENCES for details of copyrights held on this program.