id10t |
04-23-2012 05:08 PM |
gift for Wayne, via quick coding
Preamble - so there is this webpage I saw forever ago, and it was HTML colored text to make it look like an image. This particular one was the Linux 0.01 release source code and the image was Tux.
So last night, had a hard time being tired enough to go to bed at bed time, so I RTFM'd and coded for about 45 min, and now I have "image2html". Its a PHP script that is half done, but works. It takes an image (RGB png by default, gotta change the function or add logic to support other image types), reads a pixel, gets the RGB/HTML color value, and spits out a character from a plain text file wrapped in a font tag for that color.
So for Wayne... image2html - www.gruv.org
Project for anyone that wants to play with it - image2html gruv.org
|