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

> Convert a GEM image file into a PNM image.
> More information: <https://netpbm.sourceforge.net/doc/gemtopnm.html>.

- Convert a GEM image file to a PNM image:

`gemtopnm {{path/to/file.img}} > {{path/to/output.pnm}}`

- Describe the contents of the specified GEM image:

`gemtopnm {{[-d|-debug]}} {{path/to/file.img}}`

- Display version:

`gemtopnm -version`
