Raw bitmap

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
By a '''raw bitmap''' image format, we refer to the loosely-defined class of raster image formats in which the file contains only a list of pixel colors, and nothing else.
 
By a '''raw bitmap''' image format, we refer to the loosely-defined class of raster image formats in which the file contains only a list of pixel colors, and nothing else.
  
Raw bitmap formats are generally not portable, and are best used for temporary files. There is no algorithm to decode an arbitrary unknown raw bitmap image file, but a human expert can usually do so, given enough effort.
+
Raw bitmap formats are generally not portable, and are best used for temporary files. There is no algorithm to decode an arbitrary raw bitmap image file, but a human expert can often do so, given enough effort.
  
 
== Disambiguation ==
 
== Disambiguation ==
This type of "raw" format is not related to the [[Cameras and Digital Image Sensors|digital negative formats]] used by many digital cameras. There, the word "raw" refers to the fact that the image has not been post-processed, not to the structure of the file.
+
This type of "raw" format is not related to the [[Cameras and Digital Image Sensors|digital negative formats]] used by many digital cameras. There, the word "raw" refers to the fact that the image has not been post-processed, and does not refer to the structure of the file.
  
== Discussion ==
+
== Details ==
The scope of "raw bitmap" formats cannot be precisely defined, but typical characteristics are:
+
The scope of "raw bitmap" formats cannot be precisely defined, but typical characteristics include:
 
* No header or footer
 
* No header or footer
 
* Uncompressed
 
* Uncompressed
Line 23: Line 23:
 
** [[Endianness|Byte order]] and/or [[bit order]]
 
** [[Endianness|Byte order]] and/or [[bit order]]
  
Some image editors are capable of importing (some) raw bitmap formats, after prompting the user for information about the image's dimensions, color format, etc.
+
== Variations ==
 +
It is a matter of opinion whether the types of formats described in the section should be considered to be raw bitmap formats.
  
Some image formats are structured as raw bitmaps, but can still be reliably decoded just by knowing the name of the format, because all images in that format have the same attributes. Examples of this are [[Sony Mavica 411]], [[PGF (Portfolio Graphics)]], and many other formats associated with early home computers (which often use a standard color palette). Whether such formats should be counted as "raw bitmap" formats is a matter of opinion.
+
Some image formats are structured as raw bitmaps, but can still be reliably decoded just by knowing the name of the format, because all images in that format have the same attributes. Examples include [[Sony Mavica 411]] and [[PGF (Portfolio Graphics)]].
  
Some articles dealing with various sorts of raw bitmaps (perhaps along with images of other sorts) include:
+
Many older formats, especially those associated with home computer systems, are (more or less) just a dump of the computer's video memory. They often use a standard color palette, and ''can'' be reliably decoded if you know the name of the format. The pixels and/or the bits corresponding to a particular pixel are often arranged in (what today seems like) an unusual order. Examples include many [[Apple II graphics formats]] and [[Atari graphics formats]].
 +
 
 +
Some formats do have a header, but it is insufficient to reliably decode the image. The PC variant of [[BSAVE Image]] is an example.
 +
 
 +
Some formats contain only one ''plane'' of an image, e.g. only the red samples.
 +
 
 +
== Software ==
 +
Some image editors are capable of importing (some) raw bitmap formats, after prompting the user for information about the image's dimensions, color format, etc.
  
* [[Apple II graphics formats]]
+
* [[ImageMagick]]
* [[Atari graphics formats]]
+
** Formats named CMYK, CMYKA, GRAY, MONO, PAL, RGB, RGBA, RGBO, UYVY, YCbCr, YCbCrA, YUV (complete image)
* [[BSAVE Image]]
+
** Formats named A, B, C, G, K, M, O, R, Y (single sample)

Revision as of 02:15, 24 June 2014

File Format
Name Raw bitmap
Ontology
Extension(s) .raw, .rgb, .yuv, many others
PRONOM x-fmt/185 (?)

By a raw bitmap image format, we refer to the loosely-defined class of raster image formats in which the file contains only a list of pixel colors, and nothing else.

Raw bitmap formats are generally not portable, and are best used for temporary files. There is no algorithm to decode an arbitrary raw bitmap image file, but a human expert can often do so, given enough effort.

Contents

Disambiguation

This type of "raw" format is not related to the digital negative formats used by many digital cameras. There, the word "raw" refers to the fact that the image has not been post-processed, and does not refer to the structure of the file.

Details

The scope of "raw bitmap" formats cannot be precisely defined, but typical characteristics include:

  • No header or footer
  • Uncompressed
  • Does not use a color palette
  • Cannot be decoded without external information, such as:
    • Color type and sample order (RGB, BGR, grayscale, etc.)
    • Image width in pixels
    • Row padding logic
    • Byte order and/or bit order

Variations

It is a matter of opinion whether the types of formats described in the section should be considered to be raw bitmap formats.

Some image formats are structured as raw bitmaps, but can still be reliably decoded just by knowing the name of the format, because all images in that format have the same attributes. Examples include Sony Mavica 411 and PGF (Portfolio Graphics).

Many older formats, especially those associated with home computer systems, are (more or less) just a dump of the computer's video memory. They often use a standard color palette, and can be reliably decoded if you know the name of the format. The pixels and/or the bits corresponding to a particular pixel are often arranged in (what today seems like) an unusual order. Examples include many Apple II graphics formats and Atari graphics formats.

Some formats do have a header, but it is insufficient to reliably decode the image. The PC variant of BSAVE Image is an example.

Some formats contain only one plane of an image, e.g. only the red samples.

Software

Some image editors are capable of importing (some) raw bitmap formats, after prompting the user for information about the image's dimensions, color format, etc.

  • ImageMagick
    • Formats named CMYK, CMYKA, GRAY, MONO, PAL, RGB, RGBA, RGBO, UYVY, YCbCr, YCbCrA, YUV (complete image)
    • Formats named A, B, C, G, K, M, O, R, Y (single sample)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox