IFF/ILBM Javascript library

This page describes a small project of mine, a javascript library that parses IFF/ILBM files and displays them in an HTML5 canvas. The library was introduced in this post, the library itself can be found here. The source code is available under the BSD license.

The library currently handles the following image types:

  • Color palette images
  • EHB (Extra Half-Bright) images
  • HAM (Hold & Modify) images, both HAM-6 and HAM-8 variants
  • RGB-24 images.
  • SHAM (Sliced HAM) images

The library handles the following features:

  • Uncompressed and Packbit compressed data
  • Non square pixel rendering
  • Colour-palette animations
  • Textual annotations
  • Proper scaling of 4 bit palettes

Beware that serving an ILBM/IFF file from a web-server and displaying it client side is not very efficient, for palette, EHB and RGB-24 images, the equivalent PNG file will always be more compact.


HAM image

For This, an ILBM file with an animated colour palette, created by Vector (Peter Szalkai)

Leave a Reply