GEM Raster

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Identification)
(Identification)
Line 11: Line 11:
  
 
== Identification ==
 
== Identification ==
Files begin with bytes <code>0x00 0x01</code>, except that XIMG files can also begin with <code>0x00 0x02</code>.
+
Files begin with bytes {{magic|0x00 0x01}} or, in the case of some XIMG files, {{magic|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 next two bytes indicate the size of the header, in 2-byte ''words''. For example, a value of 8 means the header is 16 bytes, measured from the beginning of the file.
  
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 words, but extended versions of the format have a larger header.
  
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>).
+
XIMG files have the ASCII signature "{{magic|XIMG}}" at byte offset 16.
  
 
== Specifications ==
 
== Specifications ==

Revision as of 15:12, 22 August 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 or, in the case of some XIMG files, 0x00 0x02.

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

The header size is at least 8 words, but extended versions of the format have a larger header.

XIMG files have the ASCII signature "XIMG" at byte offset 16.

Specifications

Software

Sample files

See also

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox