pnmtopng
Converts a PNM image file to PNG image format.
TLDR
Read a PNM image as input and produce a PNG image as output
$ pnmtopng [path/to/file.pnm] > [path/to/file.png]
Display version
$ pnmtopng -version
Read a PNM image as input and produce a PNG image as output