This software allows users to create HTML images without the use of traditional image files. Instead, it generates code that creates the illusion of an image using text and shapes. This approach saves bandwidth and improves load times.
HIWI functions by creating a table of differently colored background cells, resulting in a seamless image. Usage is simple, requiring users to include the following lines of code in their HTML file:
< 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));
The "decodeImage" function takes in the "imgTGA" array, which represents a byte-for-byte version of a file, and a scaling factor. This version is a rough example that uses various hacks and shortcuts. For example, the file cannot be loaded from disc, and data is ripped from a limited subset of TGA formats. Additionally, there may be some minor corruption at the bottom of the image.
Overall, HIWI is a useful tool for those looking to embed images into HTML files without dealing with separate image files and IMG tags. Its easy-to-use JavaScript functions make the process simple and efficient.
Version 1.0: N/A