1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-16 12:15:24 +02:00
tldr/pages/common/pbmtopgm.md

362 B

pbmtopgm

Convert a PBM image to PGM by averaging areas surrounding individual pixels. See also: pnmconvol, pamditherbw. More information: https://netpbm.sourceforge.net/doc/pbmtopgm.html.

  • Convert PBM image to PGM by averaging the wxh-sized area surrounding each pixel:

pbmtopgm {{w}} {{h}} {{path/to/image.pbm}} > {{path/to/output.pgm}}