LinuxCommandLibrary

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community