LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtoascii

Convert PPM images to ASCII art

TLDR

Convert PPM to ASCII art (default 1x2 cell size)
$ ppmtoascii [input.ppm]
copy
Convert with 2x4 cell size for more detail
$ ppmtoascii -2x4 [input.ppm]
copy

SYNOPSIS

ppmtoascii [-1x2|-2x4] [file]

DESCRIPTION

ppmtoascii reads a PPM image and produces a somewhat crude ASCII graphic as output, with ANSI terminal control characters so it has crude color when sent to a color text terminal. Part of the Netpbm toolkit.In addition to the resolution options, ppmtoascii supports the common Netpbm options such as -quiet to suppress informational messages.Note that ppmtoterm does a similar conversion but displays each character as a single pixel (using the same dense character for every pixel), whereas ppmtoascii combines 2 or 8 pixels into one character that roughly represents those pixels.

PARAMETERS

-1x2

Each character represents 1 pixel across by 2 pixels down. This is the default.
-2x4
Each character represents 2 pixels across by 4 pixels down, giving more detail.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid