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

> Convert a PAM image to an equivalent PNM image.
> More information: <https://netpbm.sourceforge.net/doc/pamtopnm.html>.

- Convert a PAM image to an equivalent PNM image, i.e. a PBM, PGM or PPM image:

`pamtopnm {{path/to/image.pam}} > {{path/to/output.pbm|pgm|ppm}}`

- Display version:

`pamtopnm -version`
