This is a command-line tool written in Rust that converts an image to ASCII art.
- Converts various image formats to ASCII art.
- Resizes the image for better representation.
- Supports common ASCII characters for the conversion.
- Outputs the ASCII art to the console.
-
Make sure you have Rust and Cargo installed on your system.
-
Clone the repository:
git clone https://github.com/k0ez13/image-to-ascii.git
- Navigate to the project directory:
cd image-to-ascii
- Build the project:
cargo build --release
- Run the tool with an image file as the argument:
cargo run --release path/to/image.jpg
Replace path/to/image.jpg
with the actual path to your image file.
- The ASCII representation of the image will be displayed in the console.
The tool supports the following image formats:
- BMP
- GIF
- JPEG
- PNG
- TIFF
Please note that additional dependencies are included to handle different formats.
You can customize the ASCII characters used for the conversion by modifying the ASCII_CHARS
array in the source code.
This project is licensed under the MIT License.