LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmquantall

Quantize multiple PPM images to a shared color palette

TLDR

Quantize images to same 256-color palette
$ ppmquantall [256] [*.ppm]
copy
Quantize with output to new files (using extension)
$ ppmquantall -ext [.quant] [256] [*.ppm]
copy

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.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm-extras
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

Modifies input files in place unless -ext is specified. Use -ext to preserve originals.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid