imgtoppm

Converts various image file formats to the PPM (Portable Pixmap) format. More information: <https://netpbm.sourceforge.net/doc/imgtoppm.html>.

Install

All systems
curl cmd.cat/imgtoppm.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 various image file formats to the PPM (Portable Pixmap) format. More information: <https://netpbm.sourceforge.net/doc/imgtoppm.html>.

  • Convert an input image to PPM format:
    imgtoppm path/to/input > path/to/output.ppm
  • Display version:
    imgtoppm -version

© tl;dr; authors and contributors