commands.sh

pbmtopgm

all

Convert a PBM image to PGM by averaging areas surrounding individual pixels. See also: `pnmconvol`, `pamditherbw`.

More info →

Examples (1)

Convert PBM image to PGM by averaging the `w`x`h`-sized area surrounding each pixel

pbmtopgm w h path/to/image.pbm > path/to/output.pgm
made by @shridhargupta | data from tldr-pages