pnmtojpeg

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

pnmtojpeg path/to/file.pnm > path/to/file.jpg

pnmtojpeg -version