| Crates.io | pxbm |
| lib.rs | pxbm |
| version | 0.1.0 |
| created_at | 2023-05-13 09:51:20.717204+00 |
| updated_at | 2023-05-13 09:51:20.717204+00 |
| description | Tool for printing bitmap images in ANSI-based shells |
| homepage | |
| repository | https://github.com/kjeller/pxbm |
| max_upload_size | |
| id | 863648 |
| size | 63,733 |
pxbm is used for printing bitmap images on ANSI-based shell.
It works by changing the background color (ANSI color codes) and printing " " (whitespace) to stdout.
Supported formats:
| Format | ASCII (plain) | Binary (raw) | Extension | RGB input flag |
|---|---|---|---|---|
| X BitMap | Yes | No | .xbm | Yes |
| Portable BitMap | Yes (P1) | Yes (P4) | .pbm | Yes |
| Portable GrayMap | Yes (P2) | Yes (P5) | .pgm | No |
| Portable PixMap | Yes (P3) | Yes (P6) | .pgm | No |

cargo build
To run:
Usage: pxbm <command> <filepath> [red] [green] [blue]
Arguments:
<command> [possible values: xbm, netpbm]
<filepath> File to print
[red] Red [default: 255]
[green] Green [default: 255]
[blue] Blue [default: 255]
Options:
-h, --help Print help
-V, --version Print version