ppmquantall
Quantize multiple PPM images to a shared color palette
TLDR
Quantize images to same 256-color palette
$ ppmquantall [256] [*.ppm]
Quantize with output to new files (using extension)$ ppmquantall -ext [.quant] [256] [*.ppm]
SYNOPSIS
ppmquantall [-ext extension] ncolors files...
DESCRIPTION
ppmquantall takes multiple PPM images as input, chooses the best ncolors colors to represent all images, maps existing colors to the new palette, and overwrites the input files with the quantized versions. Useful for creating GIF animations where all frames must share a single palette.Part of the Netpbm toolkit. Superseded by pnmquantall (Netpbm 10.58, March 2012), which handles all Netpbm input formats.
PARAMETERS
-ext extension
Write output files with this extension appended instead of overwriting originals.ncolors
Maximum number of colors in the shared palette.files
PPM files to quantize.
CAVEATS
Modifies input files in place unless -ext is specified. Use -ext to preserve originals.
SEE ALSO
pnmquantall(1), ppmquant(1)
