HIWI

HTML Images Without Images
Download

HIWI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Steven Goodwin
  • Publisher web site:
  • http://www.bluedust.dontexist.com/qubit/

HIWI Tags


HIWI Description

HTML Images Without Images 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. Limitations: · Slow (~5 seconds to decode a 163x218 image) · Limit ctor size on arrays


HIWI Related Software