asciitopgm

Convert ASCII graphics into a PGM file. More information: <https://netpbm.sourceforge.net/doc/asciitopgm.html>.

Install

All systems
curl cmd.cat/asciitopgm.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 ASCII graphics into a PGM file. More information: <https://netpbm.sourceforge.net/doc/asciitopgm.html>.

  • Read ASCII data as input and produce a PGM image with pixel values that are an approximation of the "brightness" of the ASCII characters:
    asciitopgm path/to/input_file > path/to/output_file.pgm
  • Display version:
    asciitopgm -version

© tl;dr; authors and contributors