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

> Convert an arbitrary type of image file to common image formats.
> More information: <https://netpbm.sourceforge.net/doc/anytopnm.html>.

- Convert an input image to PBM, PGM, or PPM format irrespective of the input type:

`anytopnm {{path/to/input}} > {{path/to/output.pnm}}`

- Display version:

`anytopnm {{[-v|-version]}}`
