Skip to content
Give it an image and a size, and get colorful ascii art spoken by a cow.
Shell JavaScript
Branch: master
Clone or download
Andrew Macheret
Andrew Macheret Use restart-service.sh
Latest commit 7e86e32 Oct 28, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc
.gitignore
.travis.yml
Dockerfile
LICENSE.md
README.md
ascii-cow-server.js
ascii-cow.sh
example.jpg
id_rsa_a1-server.enc
package.json
screenshot.png

README.md

ascii-cow

Build Status Docker Stars Docker Pulls License

Give it an image and a size, and get colorful ascii art spoken by a cow.

Running locally:

Dependencies:

Run it:

./ascii-cow.sh -f example.jpg -w 80

url='https://raw.githubusercontent.com/andrewmacheret/ascii-cow/master/example.jpg'
./ascii-cow.sh -u "$url" -w 80

Running docker container:

Dependencies:

Run it:

# convert a file
docker run --rm -it andrewmacheret/ascii-cow ./ascii-cow.sh -f example.jpg -w 80

# convert a url
url='https://raw.githubusercontent.com/andrewmacheret/ascii-cow/master/example.jpg'
docker run --rm -it andrewmacheret/ascii-cow ./ascii-cow.sh -u "$url" -w 80

# run as a server on port 8080
docker run -d andrewmacheret/ascii-cow

# convert a url via a GET request
url='https://raw.githubusercontent.com/andrewmacheret/ascii-cow/master/example.jpg'
echo -e "$( curl -s "http://localhost:8080/ascii-cows?url=$url&width=80" )"

Building docker container from source:

Dependencies:

Build it:

./build.sh

Example result:

Screenshot

You can’t perform that action at this time.