This is a port of skeeter to Go.
Convert this:
Into this:
You make a request to it like so:
And it spits out the ascii art! Magic!
The original skeeter implementation was built with ZeroMQ in Ruby and had seperate processes for each piece. Ensuring all the pieces were behaving correctly and always up became a hassle. The Ruby version also shelled out to jp2a and imagemagick to do the actual image manipulation. I ported everything to Go, including image fetching and borrowed the jp2a ascii algorithm to do image manipulation in one native Go program. No external dependencies, just one binary that you drop onto the server and run!
Then run go run skeeter.go resize.go -port=9001
from within the skeeter directory.
To cross compile for linux 386 from OS X, I followed this wiki page to setup the compiler toolchain: http://code.google.com/p/go-wiki/wiki/WindowsCrossCompiling
Once that's setup, I ran:
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build
This generates the skeeter-go
binary, which you run to start the web server.
Skeeter is written by Blake Smith [email protected].