A small Elixir script to convert an image to ASCII characters and print to the command line. Just a quick project for me to learn some Elixir basics, following Robert Heaton's Programming Projects for Advanced Beginners #1: ASCII art.
- Elixir ~> 1.7
- ImageMagick ~> 7.0
Clone this repo to a suitable location and install dependencies with mix deps.get
.
Run the script with:
mix asciify path/to/image.jpg
The specified image will be converted to ASCII characters and printed to the console. The image will be resized, but you'll still probably need to zoom out your console quite a lot to fit the whole image in (usually Cmd+-
or Ctrl+-
).