HIWI 1.0

HTML Images Without Images

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Steven Goodwin
HOMEPAGE:
www.bluedust.dontexist.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
1 HIWI Screenshot:
HIWI - HIWI example
HIWI (HTML Images Without Images) is a set of JavaScript functions for embedding images into HTML files without using separate image files and IMG tags. It produces an HTML table of differently colored cells which will be rendered by a Web browser into the desired image. HIWI includes a basic TGA file parser to generate images on-the-fly.

How does it work?


Very well, thank you!
(Hint: it uses a table of differently coloured background cells!)

Usage:

< SCRIPT language="JavaScript" SRC="hiwi_image_tga.js" >< /SCRIPT >
< SCRIPT language="JavaScript" SRC="hiwi_image_parser.js" >< /SCRIPT >

< SCRIPT language="JavaScript" SRC="mona_lisa.js" >< /SCRIPT >

document.write(decodeImage(imgTGA, 1));

imgTGA is an array containing a byte-for-byte version of a file. '1' is the scale factory. '1' for normal, '2' for double, etc.

This version is a rough example using many hacks and shortcuts. In short:

Hacks in this version:

* No loading from disc (I couldn't get the Tiddlywiki loadFile code to return non-null content)
* Data ripped from limited subset of TGA formats (it's a basic format, 18 byte header, and BGR data)
* Minor corruption at bottom of image.

Last updated on October 5th, 2008

limitations

#JavaScript functions #HTML images #embed images #HTML #JavaScript #embed #images

Add your review!

SUBMIT