jpegtopnm
Converts a JPEG/JFIF file to the PPM or PGM format.
TLDR
Convert JPEG/JFIF image to a PPM or PGM image
$ jpegtopnm [path/to/file.jpg] > [path/to/file.pnm]
Display version
$ jpegtopnm -version
Convert JPEG/JFIF image to a PPM or PGM image