harunsasmaz / ASCII-image-converter

Convert images in .bmp format to ASCII images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASCII Image Converter

Convert BMP images to TXT images by using ASCII art.

Compile and Run

To compile:

make

To generate all sample outputs from images under in/ directory:

make run_all

Or just generate a single sample:

make run_image

or

./ascii "input file" M N > "output file" // M and N are the dimensions of each pixel

Example:

make run_woman

Before After
bmp png

Bonus

Bonus part includes a short and fun code that generates a donut.

But this donut rotates around x, y and z axes.

Please run and enjoy!

make run_bonus

video

About

Convert images in .bmp format to ASCII images


Languages

Language:C++ 65.4%Language:Makefile 18.1%Language:C 16.5%