commands.sh

pamdepth

all

Reduce the depth (i.e. color resolution) in an image.

More info →

Examples (1)

Read a PBM image, set its maxval and save it to a file

pamdepth maxval path/to/image.pbm > path/to/file.pbm
made by @shridhargupta | data from tldr-pages