ppmtoicr

Convert a PPM image to NCSA ICR format. More information: <https://netpbm.sourceforge.net/doc/ppmtoicr.html>.

Install

All systems
curl cmd.cat/ppmtoicr.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

Convert a PPM image to NCSA ICR format. More information: <https://netpbm.sourceforge.net/doc/ppmtoicr.html>.

  • Convert a PPM image to a ICR file:
    ppmtoicr path/to/file.ppm > path/to/file.icr
  • Display the output in name:
    ppmtoicr -windowname name path/to/file.ppm > path/to/file.icr
  • Expand the image by the specified factor:
    ppmtoicr -expand factor path/to/file.ppm > path/to/file.icr
  • Display the output on the screen with the specified number:
    ppmtoicr -display number path/to/file.ppm > path/to/file.icr

© tl;dr; authors and contributors