Raster Images in HTML

As asserted by microformats, HTML is the only language of the internet. Why, if data were represented in a format that made any sense, web browsers would become so compact as to form a singularity, which leads to black holes which leads to the end of the world as we know it. Hence why the "h-card" microformat exists, instead of using the vcard file format that already existed at the time.

As of now, there is at least one file format type which exists in a sensible form rather than being smashed into the HTML/CSS/Javascript stack: images. This specification seeks to fix this oversight.

Like the microformat specifications, this specification lives entirely in the class attribute of html elements so that this spec can be placed into the wild immediately.

Create ImageIO writer that can write these files. Maybe even a reader as well.

Table of Contents

  1. Classes

Related Resources

example.html

A sample Raster in Html file.

For the sake of compactness, the stylesheet used by this file removes any color rules not used by this image.

example.png

The reference image. The example.html file should look exactly like this one.

rasterInHtml.css.scala

A scala script which is capable of generating the full css file that allows browsers that only support CSS to display RasterInHtml files. The output file is about three-fourths of a gigabyte.

rasterInHtmlNoAlpha.css.scala

A scala script which is capable of generating a reduced css file that allows browsers that only support CSS to display RasterInHtml files. The images that use this stylesheet will only be able to support GIF-style transparency, i.e. full or none. However, the output file is only about 4 megabytes.