mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
13 lines
524 B
Markdown
13 lines
524 B
Markdown
# ppmtoascii
|
|
|
|
> Convert a PPM image to an ASCII image using ANSI terminal color codes.
|
|
> See also: `ppmtoterm`, `pbmtoascii`, `pbmto4425`.
|
|
> More information: <https://netpbm.sourceforge.net/doc/ppmtoascii.html>.
|
|
|
|
- Convert a PPM image to an ASCII image, combining an area of 1x2 pixels into a character:
|
|
|
|
`ppmtoascii {{path/to/input.ppm}} > {{path/to/output.txt}}`
|
|
|
|
- Convert a PPM image to an ASCII image, combining an area of 2x4 pixels into a character:
|
|
|
|
`ppmtoascii -2x4 {{path/to/input.ppm}} > {{path/to/output.txt}}`
|