asC is a tool that converts any supported image format into an ASCII art representation. This tool is perfect for generating text-based images from any of the supported formats.
- Convert images to ASCII art: Transform any image into an ASCII version with customizable scaling and optional color inversion.
- Support for multiple image formats: asC supports a multiple image formats, making it versatile for different use cases.
asC supports the following image file formats:
- JPEG (.jpg, .jpeg)
- PNG (.png)
- BMP (.bmp)
- PNM (.ppm, .pgm)
- PSD (.psd)
- TGA (.tga)
- HDR (.hdr)
- PIC (.pic)
To use asC, run the following command in your terminal:
asc [options] <image_file>
Here’s a simple example of how to use asC:
asc -p guts_berserker_armor.jpg -r 0.5 -i > someFile.txt
In this example:
- The image located at
guts_berserker_armor.jpg
is converted to an ASCII representation and printed to the terminal. - The output is scaled to 50% of the original size.
- The colors are inverted to improve visibility.
- '>' puts the output of the terminal to a file.
To install asC, clone the repository and compile the source code:
git clone https://github.com/yourusername/asc.git
cd asc
make
This project is licensed under the GPL License.
I am planning on improving this with the following features:
- video support
- GIF support
- edge detection and styled representation