---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pnmtopng

> Convert a PNM image file to PNG image format.
> More information: <https://netpbm.sourceforge.net/doc/pnmtopng.html>.

- 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`
