Sign in

The result of the script.

I enjoy competitive programming so I spend a lot of time on Hackerrank solving various problems. One day I tried to solve this problem and it got me thinking about text formatting when running scripts on terminal.

With that problem in my mind and thinking that back-end development didn’t need to be visually uninteresting I created this script. It receives as input the path to a black and white icon on your computer, image width, image height, and it outputs that icon on the terminal using ‘#’ and whitespaces.

How it Works

To load the image I used the PIL library. Then, since…

Eric Velasco

Computer Scientist & Data Analyst & Currently looking for a job.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store