commands.sh

ppmdist

all

Produce a grayscale version of a PPM image.

More info →

Examples (2)

Produce a grayscale version of the specified PPM image

ppmdist path/to/input.ppm > path/to/output.pgm

Use the specified method to map colors to graylevels

ppmdist -frequency|intensity path/to/input.ppm > path/to/output.pgm
made by @shridhargupta | data from tldr-pages