jpegtopnm

Converts a JPEG/JFIF file to the PPM or PGM format. More information: <https://netpbm.sourceforge.net/doc/jpegtopnm.html>.

Install

All systems
curl cmd.cat/jpegtopnm.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Converts a JPEG/JFIF file to the PPM or PGM format. More information: <https://netpbm.sourceforge.net/doc/jpegtopnm.html>.

  • Convert JPEG/JFIF image to a PPM or PGM image:
    jpegtopnm path/to/file.jpg > path/to/file.pnm
  • Display version:
    jpegtopnm -version

© tl;dr; authors and contributors