ppmtomap
Extract colormap from PPM image
TLDR
Extract colormap from image
$ ppmtomap [input.ppm] > [colormap.ppm]
Sort colors by frequency$ ppmtomap -sort [input.ppm] > [colormap.ppm]
SYNOPSIS
ppmtomap [options] [file]
DESCRIPTION
ppmtomap extracts the unique colors from a PPM image as a one-row colormap image. Useful for analyzing or transferring palettes. Part of Netpbm toolkit.
PARAMETERS
-sort
Sort colors by frequency.-square
Make output square.
INSTALL
sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm
SEE ALSO
ppmhist(1), pnmcolormap(1)
