pnmsmooth

Smooth out a PNM image. More information: https://netpbm.sourceforge.net/doc/pnmsmooth.html.

pnmsmooth path/to/input.pnm > path/to/output.pnm

pnmsmooth -width width -height height path/to/input.pnm > path/to/output.pnm