Skip to content
A command-line tool to convert PNG images to ANSI escape codes.
Ruby
Find file
Pull request Compare This branch is 4 commits behind enricruiz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
examples
README.md
Rakefile
ansify.gemspec

README.md

ansify

A command-line tool to convert PNG images to ANSI escape codes.

Installation

You'll need to install

gem install trollop
gem install rainbow
gem install chunky_png

Then

gem install ansify

Usage

> ansify --help
ansify v0.0.1
Options:
    --file, -f <s>:   PNG file to convert
  --resize, -r <i>:   Resize image in % [1, 99]
     --nearest, -n:   Resize using nearest neighbor sampling instead of bilinear sampling
     --version, -v:   Print version and exit
        --help, -h:   Show this message

Example

Input

nyan

Then

ansify --file ~/dev/ansify/examples/nyan.png --resize 40

ansi

Todo

  • Add file output
  • Handle resampling to higher resolution
Something went wrong with that request. Please try again.