Forum: Ruby ANN asciiart released

Posted by Stephen Schor (Guest)
on 2013-02-03 00:06
(Received via mailing list)
Turn images on your heard drive or on the internet to asciiart...even 
colorized
asciiart<http://www.flickr.com/photos/fastandbulbous/842436...
.

*New In This Version: Colorized output!*

*In Code:*

require 'asciiart'

a = AsciiArt.new("/Users/sschor/Desktop/uncle_larry.jpg")
#or
a = AsciiArt.new("
https://f.cloud.github.com/assets/54012/36827/2081...
")
puts a.to_ascii_art
=> ...untold glory follows
#or
puts a.to_ascii_art(color: true)
=> ...now you're cooking with gas


*From The Command Line using the 'asciiart' executable:*
      $ asciiart ~/Desktop/uncle_larry.jpgor even
      $ asciiart http://www.google.com/images/srpr/logo3w.png

      $ asciiart -h

  Usage: asciiart [options] <path_or_url>
      -w, --width WIDTH                Width of the finished Ascii Art
(Default: 100)
      -c, --color                      Switch to use colored terminal
output (Default: false)
      -i, --invert-chars               Invert the character map.
Depending on your terminal and image this can make the image clearer
(or a lot worse)
      -v, --version                    Show AsciiArt version
      -h, --help                       Show this message


*Dependencies:*
It relies on rmagick, so...you know...make sure your have imagemagick
installed.

*Where:*
Github:       https://github.com/eastmedia/asciiart
Rubygems: http://rubygems.org/gems/asciiart

*Thanks:*
Many thanks to our employer, Eastmedia, for allowing us to develop this 
on
the company dime.

Please use, file issues, and fork away.

Thanks,
Andrew, Ross, & Stephen from Eastmedia
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.