ILBM

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Graphics
 
|subcat=Graphics
|extensions={{ext|iff}}, {{ext|lbm}},<br> {{ext|ilbm}}, {{ext|pic}}, others
+
|extensions={{ext|iff}}, {{ext|lbm}}, {{ext|ilbm}}, {{ext|pic}}, others
 
|pronom={{PRONOM|fmt/338}}, {{PRONOM|x-fmt/424}}
 
|pronom={{PRONOM|fmt/338}}, {{PRONOM|x-fmt/424}}
 
}}
 
}}
Line 28: Line 28:
 
This is not to be confused with [[Netpbm formats|Netpbm-PBM]], a much more common format named PBM.
 
This is not to be confused with [[Netpbm formats|Netpbm-PBM]], a much more common format named PBM.
  
=== HAM ===
+
=== Hold-and-Modify ===
HAM images are designed to work with the Amiga's ''Hold-And-Modify'' display mode. HAM files should contain a <code>CAMG</code> chunk with a particular flag set. Images have a maximum of 4096 colors.
+
Hold-and-Modify (HAM) images are designed to work with the Amiga's oddball ''Hold-and-Modify'' graphics modes. There are two kinds of HAM images: HAM6 (6 bits per pixel) and HAM8 (8 bits per pixel). The term ''HAM'' sometimes refers just to HAM6.
  
=== HAM8 ===
+
It is usually said that HAM6 supports up to 4096 different colors in an image, and HAM8 supports 262,144. This is probably true with regard to the actual Amiga graphics modes, but some not-so-carefully-written ILBM specifications imply that more colors are possible. Not that it matters much, because the real limitation is that, for each pixel, there are at most 64 or 256 available colors.
HAM8 is a variant of HAM, designed to work with a display mode available on some Amigas. Images have a maximum of 262,144 colors.
+
  
=== HALFBRITE ===
+
==== HAM6 ====
HALFBRITE images are designed to work with the Amiga's ''Halfbrite'' display mode. HALFBRITE files should contain a <code>CAMG</code> chunk with a particular flag set. Images have a maximum of 64 colors.
+
HAM6 files have bit 11 of the <code>CAMG</code> chunk set, 6 planes (rarely 5), and 16 palette colors.
 +
 
 +
Reportedly, some HAM6 files are missing the <code>CAMG</code> chunk. A file with no <code>CAMG</code> chunk, 6 bit planes, and 16 palette colors is probably HAM6.
 +
 
 +
==== HAM8 ====
 +
HAM8 files have bit 11 of the <code>CAMG</code> chunk set, 8 planes (rarely 7), and 64 palette colors.
 +
 
 +
=== Extra-Halfbrite ===
 +
Extra-Halfbrite (EBH) images are designed to work with the Amiga's ''Halfbrite'' graphics mode. They have 6 planes, but only 32 colors in the palette. In effect, the palette should be assumed to have an additional 32 colors that are half as bright as the first 32.
 +
 
 +
Extra-Halfbrite files are identified by bit 7 of the <code>CAMG</code> chunk being set.
  
 
== Specifications ==
 
== Specifications ==
Line 50: Line 59:
 
* [[RECOIL]]
 
* [[RECOIL]]
 
* [http://www.irfanview.com/ Irfanview] with ''FORMATS'' [http://www.irfanview.com/plugins.htm plugin] 4.36 or more recent
 
* [http://www.irfanview.com/ Irfanview] with ''FORMATS'' [http://www.irfanview.com/plugins.htm plugin] 4.36 or more recent
 +
* [https://github.com/svanderburg/libilbm libilbm]
  
 
== Sample files ==
 
== Sample files ==

Revision as of 21:38, 24 January 2015

File Format
Name ILBM
Ontology
Extension(s) .iff, .lbm, .ilbm, .pic, others
PRONOM fmt/338, x-fmt/424

ILBM (or IFF-ILBM, or LBM) is a loosely-defined family of raster image file formats that use the IFF container format. ILBM stands for InterLeaved BitMap.

It is also sometimes called IFF or Amiga IFF, though IFF more properly refers to the generic IFF format on which ILBM is based.

As seems to be common practice, we consider ILBM to include some formats that are not actually interleaved. We exclude formats that use incompatible variants of IFF.

ILBM files were widely used on Amiga computers, but are not limited to that platform. The format originated with the Deluxe Paint program from Electronic Arts.

When "lost" computer graphics created by Andy Warhol on an Amiga computer were discovered and converted by retrocomputing buffs at the Carnegie Mellon University Computer Club in 2013, some of them were found to be in a slight variant of the ILBM format, with a .pic extension.

Contents

Identification

The IFF chunk identifiers (ASCII strings) FORM and (usually) ILBM appear near the beginning of the file. BMHD appears later in the file, usually immediately after ILBM.

Some files do not contain an ILBM chunk, but instead contain a different chunk such as "PBM ", RGBN, or RGB8.

Special types of ILBM

The plain ILBM format is reasonably well standardized. This section describes some of the other ILBM formats.

PBM

PBM (Planar BitMap) files have a "PBM " chunk instead of an ILBM chunk, and the image data is organized differently.

This is not to be confused with Netpbm-PBM, a much more common format named PBM.

Hold-and-Modify

Hold-and-Modify (HAM) images are designed to work with the Amiga's oddball Hold-and-Modify graphics modes. There are two kinds of HAM images: HAM6 (6 bits per pixel) and HAM8 (8 bits per pixel). The term HAM sometimes refers just to HAM6.

It is usually said that HAM6 supports up to 4096 different colors in an image, and HAM8 supports 262,144. This is probably true with regard to the actual Amiga graphics modes, but some not-so-carefully-written ILBM specifications imply that more colors are possible. Not that it matters much, because the real limitation is that, for each pixel, there are at most 64 or 256 available colors.

HAM6

HAM6 files have bit 11 of the CAMG chunk set, 6 planes (rarely 5), and 16 palette colors.

Reportedly, some HAM6 files are missing the CAMG chunk. A file with no CAMG chunk, 6 bit planes, and 16 palette colors is probably HAM6.

HAM8

HAM8 files have bit 11 of the CAMG chunk set, 8 planes (rarely 7), and 64 palette colors.

Extra-Halfbrite

Extra-Halfbrite (EBH) images are designed to work with the Amiga's Halfbrite graphics mode. They have 6 planes, but only 32 colors in the palette. In effect, the palette should be assumed to have an additional 32 colors that are half as bright as the first 32.

Extra-Halfbrite files are identified by bit 7 of the CAMG chunk being set.

Specifications

Software

It is possible that there is no single application that does a good job of decoding the full range of ILBM formats. More research is needed here.

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox