Skip to content

Given a image.bmp and a M x N group of pixels, generate a text that represents the image.bmp in ascii characters

License

Notifications You must be signed in to change notification settings

jgcmarins/ascii-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-art

Given a image.bmp and a M x N group of pixels, generate a text that represents the image.bmp in ascii characters.

results

Before After
Socrates image Socrates ascii
Woman image Woman ascii
JS image JS ascii

outputs

You can also check the outputs here.

usage

First, build the executable

$ make

Then, run:

$ make run /path/to/image.bmp M N

I would recommend to choose M and N based on image resolution and also to direct the output like this:

$ make run /path/to/image.bmp M N > output.txt

notices

Sorry for my bad C++. It's been a long time 😆

License

MIT

About

Given a image.bmp and a M x N group of pixels, generate a text that represents the image.bmp in ascii characters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published