AAQ - Ascii Art Quine

# Download sample image
curl -O https://github-media-downloads.s3.amazonaws.com/Octocats.zip && unzip Octocats.zip
aaq Octocat/Octocat.png --color


Add this line to your application's Gemfile:

gem 'aaq'

And then execute:

$ bundle

Or install it yourself as:

$ gem install aaq


Simple quine.

aaq Octocat/Octocat.png 

Colorful quine.

aaq Octocat/Octocat.png --color

Delete escape sequence.

aaq Octocat/Octocat.png --color | ruby -ne 'puts $_.gsub(/\e.*?m/, "")' | ruby

Put --color option.

aaq Octocat/Octocat.png | xargs -0 -J % ruby -e % '' --color

In source code.

require 'aaq'

puts AAQ::AAQ.new(img_file_name).convert


Bug reports and pull requests are welcome on GitHub at https://github.com/yskoht/aaq.


The gem is available as open source under the terms of the MIT License.