This is a ASCII Art example that is written in python language just to have fun.
I used 3 basic functions, one is a main function, one another is for users to select a file (image), and the last one is doing the job.
Original blogpost can be found from here : http://orcunyilmaz.com/coding-python/ascii-art-with-python.html