View Single Post
id10t id10t is online now
Registered
 
id10t's Avatar
 
Join Date: Mar 2003
Posts: 10,462
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
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.”
Old 04-23-2012, 06:08 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)