Here is a really cool “proof of concept” (as the author puts it) program: jpeg2css. The program literally does exactly as you would expect:

It takes a black and white jpeg and returns an html copy of the image created with text and CSS

Unfortunately, it only works with black and white images, but the idea and execution is really cool. There is a video posted on the site showing exactly how the program works.

Have fun with this one.