Crates.io | ascii-gen |
lib.rs | ascii-gen |
version | 1.1.0 |
source | src |
created_at | 2023-11-19 05:55:42.173322 |
updated_at | 2023-11-20 09:21:28.076974 |
description | A command line tool to generate ascii art from images |
homepage | https://github.com/thed24/ascii-gen |
repository | https://github.com/thed24/ascii-gen |
max_upload_size | |
id | 1040928 |
size | 417,593 |
This Rust tool converts images into ASCII art. It takes an image file as input, resizes it according to specified width and height parameters, and then converts the image into ASCII characters.
Use cargo to quickly and easily install ascii-gen:
cargo install ascii-gen
Run the tool:
ascii-gen --file path/to/your/image.jpg
Optional parameters:
--width
: Set the width of the output (default: 80)--height
: Set the height of the output (default: 80)--gamma
: Set the gamma of the ASCII art (default: 1.0)--live
: Enable live editing of the ASCII art (default: false)Examples:
ascii-gen --file path/to/your/image.jpg --width 120 --height 60
ascii-gen --file path/to/your/image.jpg --width 120 --height 60 --live
clap
- Command-line argument parser for Rust.image
- Image processing library for Rust.crossterm
- Cross-platform terminal manipulation library for Rust.ratatui
- TUI (Text-based User Interface) library for Rust.This project is licensed under the MIT License - see the LICENSE file for details.