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

> Convert a PNM image file to the JPEG/JFIF/EXIF image format.
> More information: <https://netpbm.sourceforge.net/doc/pnmtojpeg.html>.

- Read a PNM image as input and produce a JPEG/JFIF/EXIF image as output:

`pnmtojpeg {{path/to/file.pnm}} > {{path/to/file.jpg}}`

- Display version:

`pnmtojpeg -version`
