pnmtoddif

Convert a PNM image to a DDIF image file. More information: <https://netpbm.sourceforge.net/doc/pnmtoddif.html>.

Install

All systems
curl cmd.cat/pnmtoddif.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 PNM image to a DDIF image file. More information: <https://netpbm.sourceforge.net/doc/pnmtoddif.html>.

  • Convert a PNM image to a DDIF image file:
    pnmtoddif path/to/image.pnm > path/to/image.ddif
  • Explicitly specify the horizontal and vertical resolution of the output image:
    pnmtoddif -resolution horizontal_dpi vertical_dpi path/to/image.pnm > path/to/image.ddif

© tl;dr; authors and contributors