LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtomap

Extract colormap from PPM image

TLDR

Extract colormap from image
$ ppmtomap [input.ppm] > [colormap.ppm]
copy
Sort colors by frequency
$ ppmtomap -sort [input.ppm] > [colormap.ppm]
copy

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
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Copied to clipboard
Kai