pnmtopng

Converts a PNM image file to PNG image format. More information: <https://netpbm.sourceforge.net/doc/pnmtopng.html>.

Install

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

  • Read a PNM image as input and produce a PNG image as output:
    pnmtopng path/to/file.pnm > path/to/file.png
  • Display version:
    pnmtopng -version

© tl;dr; authors and contributors