GEM Raster

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(See also)
(Identification)
Line 11: Line 11:
  
 
== Identification ==
 
== Identification ==
Files begin with bytes <code>0x00 0x01</code>.
+
Files begin with bytes <code>0x00 0x01</code>, except that XIMG files can also begin with <code>0x00 0x02</code>.
  
 
The next two bytes indicate the size of the header, in 2-byte ''words'' (i.e. a value of 8 means the header is 16 bytes, measured from the beginning of the file).
 
The next two bytes indicate the size of the header, in 2-byte ''words'' (i.e. a value of 8 means the header is 16 bytes, measured from the beginning of the file).
Line 17: Line 17:
 
The header size is at least 8 (<code>0x00 0x08</code>), but extended versions of the format have a larger header.
 
The header size is at least 8 (<code>0x00 0x08</code>), but extended versions of the format have a larger header.
  
"XIMG" files have a header size of 59 words (<code>0x00 0x3B</code>). They have an ASCII signature of "<code>XIMG</code>" at offset 16.
+
XIMG files have an ASCII signature of "<code>XIMG</code>" at offset 16, and usually have a header size of 59 words (<code>0x00 0x3B</code>).
  
 
== Specifications ==
 
== Specifications ==

Revision as of 22:16, 4 June 2015

File Format
Name GEM Raster
Ontology
Extension(s) .img, .ximg
PRONOM x-fmt/159
Released 1985

GEM Raster (or GEM VDI Bit Image, GEM Bit Image, GEM Image, GEM Bitmap, IMG) is an image file format originally associated with the GEM operating environment by Digital Research. It was used by GEM Paint and Ventura Publisher, and by a variety of Atari ST software.

The format of bi-level images is well standardized, but the specification is ambiguous as to the format of color images. As a result, there are several incompatible flavors of color GEM raster images, some of which have their own names such as XIMG (Extended GEM Bit Image), STTT, and Hyperpaint.

Contents

Identification

Files begin with bytes 0x00 0x01, except that XIMG files can also begin with 0x00 0x02.

The next two bytes indicate the size of the header, in 2-byte words (i.e. a value of 8 means the header is 16 bytes, measured from the beginning of the file).

The header size is at least 8 (0x00 0x08), but extended versions of the format have a larger header.

XIMG files have an ASCII signature of "XIMG" at offset 16, and usually have a header size of 59 words (0x00 0x3B).

Specifications

Software

Sample files

See also

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox