Go version of the pic2html script (see http://www.text-image.com/).
To build:
go build -o pic2html.cgi
To use:
Put index.html, pic2html.cgi and the data folder + contents on a webserver and make sure CGI is enabled.
Example website:
http://www.muri.se/dev/go/pic2html/