| Crates.io | crascii |
| lib.rs | crascii |
| version | 0.0.1 |
| created_at | 2025-01-26 16:28:19.777494+00 |
| updated_at | 2025-01-26 16:28:19.777494+00 |
| description | A Rust library for converting images to ASCII art |
| homepage | |
| repository | https://github.com/prometek/crascii |
| max_upload_size | |
| id | 1531518 |
| size | 5,808,467 |
crascii is a Rust-based command-line tool that converts images into ASCII art. It allows for customization of the output dimensions, color, and character sets, and supports saving or printing the ASCII output directly to the console.
image).Clone the repository:
git clone <repository-url>
cd <repository-folder>
Build the project:
cargo build --release
Run the executable:
./target/release/crascii
Run the tool from the terminal with the following options:
crascii [OPTIONS] --image <IMAGE> --output-path <OUTPUT_PATH>
-i, --image <IMAGE>: Path to the input image file to be converted.-w, --columns <COLUMNS>: Number of columns (width) for the ASCII output (optional).-H, --lines <LINES>: Number of lines (height) for the ASCII output (optional).-C, --color: Enable colored ASCII output (optional).-c, --charsets <CHARSETS>: Character set to use for ASCII conversion (default: "default").-o, --output-path <OUTPUT_PATH>: Path to save the ASCII output file.-p, --print: Print the ASCII art directly to the terminal (optional).-h, --help: Show the help message.Convert an image to ASCII and save it:
crascii -i my_image.png -o output.txt
Specify custom dimensions for the output:
crascii -i my_image.png -w 100 -H 50 -o output.txt
cargo build
cargo run -- [OPTIONS]
Contributions are welcome! Feel free to submit issues or pull requests to enhance the tool.
This project is licensed under the MIT License. See the LICENSE file for details.
Rust community for support and documentation.