ASCII-Gen, a CLI tool that converts images to ASCII art

ASCII-Gen, a CLI tool that converts images to ASCII art

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.

Installation

Use cargo to quickly and easily install ascii-gen:

Usage

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).

Example:

ascii-gen –file path/to/your/image.jpg –width 120 –height 60

Examples

Input

Output (Small)

Output (Large)

Dependencies

clap – Command-line argument parser for Rust.
image – Image processing library for Rust.

License

This project is licensed under the MIT License – see the LICENSE file for details.

Acknowledgments

Special thanks to the Rust community for their support and contributions.

>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : Hacker News – https://github.com/thed24/ascii-gen

Exit mobile version