Raw bitmap

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Software)
(Added sample files)
 
(2 intermediate revisions by 2 users not shown)
Line 40: Line 40:
 
** Formats named CMYK, CMYKA, GRAY, MONO, PAL, RGB, RGBA, RGBO, UYVY, YCbCr, YCbCrA, YUV (complete image)
 
** 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)
 
** Formats named A, B, C, G, K, M, O, R, Y (single sample)
* [http://zzo38computer.org/fossil/farbfeld.ui/index Farbfeld Utilities] (see also [[farbfeld]])
+
* [[Farbfeld Utilities]]
 
** <code>rgbff</code> - RGB/RGBA, in various orders and padding, planar, premultiplied-alpha, etc
 
** <code>rgbff</code> - RGB/RGBA, in various orders and padding, planar, premultiplied-alpha, etc
 
** <code>bitff</code> - Indexed colour images, with 1, 2, 4, or 8 bits per pixel, various kinds of bit orders and packing
 
** <code>bitff</code> - Indexed colour images, with 1, 2, 4, or 8 bits per pixel, various kinds of bit orders and packing
 +
* [[Tom's Viewer]]
 +
 +
== Sample files ==
 +
* {{DexvertSamples|image/rawBitmap}}

Latest revision as of 21:19, 22 January 2024

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

[edit] 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.

[edit] 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

[edit] 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.

[edit] 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)
  • Farbfeld Utilities
    • rgbff - RGB/RGBA, in various orders and padding, planar, premultiplied-alpha, etc
    • bitff - Indexed colour images, with 1, 2, 4, or 8 bits per pixel, various kinds of bit orders and packing
  • Tom's Viewer

[edit] Sample files

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox