🖼️ A cross-platform command-line tool for converting images to ASCII art
A command-line tool for converting images to ASCII art
# Clone the repository
git clone https://github.com/JosefVesely/Image-to-ASCII
# Enter the project directory
cd Image-to-ASCII
# Compile the program using Make
make
Usage: img2ascii [options] -i <FILE> [-o <FILE>]
A command-line tool for converting images to ASCII art
Options:
-i, --input <FILE> Path of the input image file (required)
-o, --output <FILE> Path of the output file
-w, --width <NUMBER> Width of the output
-c, --chars <STRING> Characters to be used for the ASCII image
-p, --print Print the output to the console
-r, --reverse Reverse the string of characters
Input | Output |
---|---|
img2ascii -i images/c.png -w 40 -p |
|
img2ascii -i images/monroe.jpg -w 35 -p -r |
|
img2ascii -i images/pink_floyd.jpg -w 80 -p -r |
|
img2ascii -i images/pepsi.png -w 35 -p -r |
|
img2ascii -i images/aperture.jpg -w 50 -p |
Contributions are welcome! If you have any improvements or bug fixes, feel free to submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details