The asciiart gem is a way to convert local files or URLs into command
line
asciiart.
In Code:
require ‘asciiart’
a = AsciiArt.new(“/Users/sschor/Desktop/uncle_larry.jpg”)
=> #<AsciiArt:0x00000100878678
@file=#<File:/Users/sschor/Desktop/uncle_larry.jpg>>
puts a.to_ascii_art
=> …untold glory follows
From The Command Line using the ‘asciiart’ executable:
$ asciiart ~/Desktop/uncle_larry.jpg
or even
$ asciiart http://www.google.com/images/srpr/logo3w.png
Dependencies:
It relies on rmagick, so…you know…make sure your have imagemagick
installed.
Where:
Github: GitHub - nodanaonlyzuul/asciiart
Rubygems: asciiart | RubyGems.org | your community gem host
Thanks:
Many thanks to our employer, Eastmedia, for allowing us to develop this
on
the company dime.
Please use, file issues, and fork away.