pgmmake

Create PGM image with a uniform gray level. More information: <https://netpbm.sourceforge.net/doc/pgmmake.html>.

Install

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

Create PGM image with a uniform gray level. More information: <https://netpbm.sourceforge.net/doc/pgmmake.html>.

  • Create PGM image with a uniform gray level (specified as a number between 0 and 1) and the specified dimensions:
    pgmmake graylevel width height > path/to/output_file.pgm

© tl;dr; authors and contributors