2023-10-26 20:16:24 +01:00
|
|
|
# pbmtoascii
|
|
|
|
|
|
|
|
> Convert a PBM image to ASCII graphics.
|
2024-03-02 16:28:40 +00:00
|
|
|
> See also: `ppmtoascii`, `asciitopgm`, `ppmtoterm`.
|
2023-10-26 20:16:24 +01:00
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pbmtoascii.html>.
|
|
|
|
|
|
|
|
- Read a PBM file as input and produce an ASCII output:
|
|
|
|
|
|
|
|
`pbmtoascii {{path/to/input_file.pbm}}`
|
|
|
|
|
|
|
|
- Read a PBM file as input and save an ASCII output into a file:
|
|
|
|
|
|
|
|
`pbmtoascii {{path/to/input_file.pbm}} > {{path/to/output_file}}`
|
|
|
|
|
|
|
|
- Read a PBM file as input while setting the pixel mapping (defaults to 1x2):
|
|
|
|
|
|
|
|
`pbmtoascii -{{1x2|2x4}} {{path/to/input_file.pbm}}`
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
`pbmtoascii -version`
|