A camera raw image file contains unprocessed or minimally processed data from the
image sensor
An image sensor or imager is a sensor that detects and conveys information used to make an image. It does so by converting the variable attenuation of light waves (as they pass through or reflect off objects) into signals, small bursts of c ...
of either a
digital camera
A digital camera is a camera that captures photographs in digital memory. Most cameras produced today are digital, largely replacing those that capture images on photographic film. Digital cameras are now widely incorporated into mobile devic ...
, a
motion picture film scanner
A motion picture film scanner is a device used in digital filmmaking to scan original film for storage as high-resolution digital intermediate files.
A film scanner scans original film stock: negative or positive print or reversal/IP. Units may ...
, or other
image scanner
An image scanner—often abbreviated to just scanner—is a device that optically scans images, printed text, handwriting or an object and converts it to a digital image. Commonly used in offices are variations of the desktop ''flatbed scanner'' ...
.
Raw files are named so because they are not yet processed and therefore are not ready to be
printed
Printing is a process for mass reproducing text and images using a master form or template. The earliest non-paper products involving printing include cylinder seals and objects such as the Cyrus Cylinder and the Cylinders of Nabonidus. The ...
, viewed or edited with a
bitmap graphics editor
A raster graphics editor is a computer program that allows users to create and edit images interactively on the computer screen and save them in one of many raster graphics file formats (also known as bitmap images) such as JPEG, PNG, and GIF.
...
. Normally, the image is processed by a raw converter in a wide-
gamut
In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain ''complete subset'' of colors. The most common usage refers to the subset of colors which can be accurately represented in a given circ ...
internal
color space
A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of colorwhether such representation entails an analog or a digital representa ...
where precise adjustments can be made before
conversion to a viewable file format such as
JPEG
JPEG ( ) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and im ...
or PNG for storage, printing, or further manipulation. There are dozens of raw formats in use by different manufacturers of digital image capture equipment.
Rationale
Raw image files are sometimes incorrectly described as "digital
negatives", but neither are they negatives nor do the unprocessed files constitute visible images. Rather, the Raw datasets are more like
exposed but
undeveloped
A developing country is a sovereign state with a lesser developed industrial base and a lower Human Development Index (HDI) relative to other countries. However, this definition is not universally agreed upon. There is also no clear agree ...
film which can be converted (electronically developed) in a non-destructive manner multiple times in observable, reversible steps to reach a visually desired image. (With exposed film, development is a single event that physically transforms the unexposed film irreversibly.)
Like undeveloped photographic film, a raw digital image may have a wider
dynamic range
Dynamic range (abbreviated DR, DNR, or DYR) is the ratio between the largest and smallest values that a certain quantity can assume. It is often used in the context of signals, like sound and light. It is measured either as a ratio or as a base- ...
or color
gamut
In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain ''complete subset'' of colors. The most common usage refers to the subset of colors which can be accurately represented in a given circ ...
than the developed film or print. Unlike physical film after development, the Raw file preserves the information captured at the time of exposure. The purpose of raw image formats is to save, with minimum loss of information, data obtained from the sensor.
Raw image formats are intended to capture the
radiometric
Radiometry is a set of techniques for measuring electromagnetic radiation, including visible light. Radiometric techniques in optics characterize the distribution of the radiation's power in space, as opposed to photometric techniques, which ch ...
characteristics of the scene, that is, physical information about the light intensity and color of the scene, at the best of the camera sensor's performance. Most raw image file formats store information sensed according to the geometry of the sensor's individual photo-receptive elements (sometimes called
pixel
In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device.
In most digital display devices, pixels are the s ...
s) rather than points in the expected final image: sensors with hexagonal element displacement, for example, record information for each of their hexagonally-displaced cells, which a decoding software will eventually transform into the rectangular geometry during "digital developing".
File contents
Raw files contain the information required to produce a viewable image from the camera's sensor data. The structure of raw files often follows a common pattern:
* A short file header which typically contains an indicator of the
byte-ordering of the file, a file identifier and an offset into the main file data
* Camera sensor
metadata which is required to interpret the sensor image data, including the size of the sensor, the attributes of the
CFA and its
color profile
* Image
metadata which can be useful for inclusion in any
CMS
CMS may refer to:
Computing
* Call management system
* CMS-2 (programming language), used by the United States Navy
* Code Morphing Software, a technology used by Transmeta
* Collection management system for a museum collection
* Color manage ...
environment or
database
In computing, a database is an organized collection of data stored and accessed electronically. Small databases can be stored on a file system, while large databases are hosted on computer clusters or cloud storage. The design of databases spa ...
. These include the exposure settings, camera/scanner/lens model, date (and, optionally, place) of shoot/scan, authoring information and other. Some raw files contain a standardized metadata section with data in
Exif
Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) is a standard that specifies formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other syste ...
format.
* An image
thumbnail
Thumbnails are reduced-size versions of pictures or videos, used to help in recognizing and organizing them, serving the same role for images as a normal text index does for words. In the age of digital images, visual search engines and image- ...
* Most raw files contain a full size JPEG conversion of the image, which is used to preview the file on the camera's LCD panel.
* In the case of motion picture film scans, either the
timecode
A timecode (alternatively, time code) is a sequence of numeric codes generated at regular intervals by a timing synchronization system. Timecode is used in video production, show control and other applications which require temporal coordinatio ...
,
keycode or frame number in the
file sequence
In computing, as well as in non-computing contexts, a file sequence is a well-ordered, (finite) collection of files, usually related to each other in some way.
In computing, file sequences should ideally obey some kind of locality of reference pri ...
which represents the frame sequence in a scanned reel. This item allows the file to be ordered in a
frame sequence (without relying on its filename).
* The sensor image data
Many raw file formats, including IIQ (
Phase One), 3FR (
Hasselblad
Victor Hasselblad AB is a Swedish manufacturer of medium format cameras, photographic equipment and image scanners based in Gothenburg, Sweden. The company originally became known for its classic analog medium-format cameras that used a waist ...
), DCR, K25, KDC (
Kodak
The Eastman Kodak Company (referred to simply as Kodak ) is an American public company that produces various products related to its historic basis in analogue photography. The company is headquartered in Rochester, New York, and is incorpor ...
), CRW CR2 CR3 (
Canon
Canon or Canons may refer to:
Arts and entertainment
* Canon (fiction), the conceptual material accepted as official in a fictional universe by its fan base
* Literary canon, an accepted body of works considered as high culture
** Western can ...
), ERF (
Epson
Seiko Epson Corporation, or simply known as Epson, is a Japanese multinational electronics company and one of the world's largest manufacturers of computer printers and information- and imaging-related equipment. Headquartered in Suwa, Nagano ...
), MEF (
Mamiya
is a Japanese company that manufactures high-end cameras and other related photographic and optical equipment. With headquarters in Tokyo, it has two manufacturing plants and a workforce of over 200 people. The company was founded in May 1940 b ...
), MOS (
Leaf
A leaf (plural, : leaves) is any of the principal appendages of a vascular plant plant stem, stem, usually borne laterally aboveground and specialized for photosynthesis. Leaves are collectively called foliage, as in "autumn foliage", wh ...
), NEF NRW (
Nikon
(, ; ), also known just as Nikon, is a Japanese multinational corporation headquartered in Tokyo, Japan, specializing in optics and imaging products. The companies held by Nikon form the Nikon Group.
Nikon's products include cameras, camera ...
),
ORF
ORF or Orf may refer to:
* Norfolk International Airport, IATA airport code ORF
* Observer Research Foundation, an Indian research institute
* One Race Films, a film production company founded by Vin Diesel
* Open reading frame, a portion of t ...
(
Olympus), PEF (
Pentax
is a brand name used primarily by the Japanese multinational imaging and electronics company Ricoh for DSLR cameras, lenses, sport optics (including binoculars and rifle scopes), and CCTV optics. The Pentax brand is also used by Hoya Corpora ...
), RW2 (
Panasonic
formerly between 1935 and 2008 and the first incarnation of between 2008 and 2022, is a major Japanese multinational conglomerate corporation, headquartered in Kadoma, Osaka. It was founded by Kōnosuke Matsushita in 1918 as a lightbulb ...
) and ARW, SRF, SR2 (
Sony
, commonly stylized as SONY, is a Japanese multinational conglomerate corporation headquartered in Minato, Tokyo, Japan. As a major technology company, it operates as one of the world's largest manufacturers of consumer and professional ...
), are based on TIFF, the Tagged Image File Format. These files may deviate from the TIFF standard in a number of ways, including the use of a non-standard file header, the inclusion of additional image tags and the encryption of some of the tagged data.
Panasonic's raw converter corrects geometric distortion and
chromatic aberration
In optics, chromatic aberration (CA), also called chromatic distortion and spherochromatism, is a failure of a lens to focus all colors to the same point. It is caused by dispersion: the refractive index of the lens elements varies with the ...
on such cameras as the
LX3, with necessary correction information presumably included in the raw.
Phase One's raw converter
Capture One
Capture One (also known as Capture One Pro) is a photography software suite. Capture One offers Capture One Pro for desktop, a tool to edit, catalog raw image file process, and tether.
Capture One works with raw files from many different digita ...
also offers corrections for geometrical distortion,
chromatic aberration
In optics, chromatic aberration (CA), also called chromatic distortion and spherochromatism, is a failure of a lens to focus all colors to the same point. It is caused by dispersion: the refractive index of the lens elements varies with the ...
, purple fringing and keystone correction emulating the shift capability of
tilt-shift in software and specially designed hardware, on most raw files from over 100 different cameras. The same holds for Canon's DPP application, at least for all more expensive cameras like all
EOS DSLRs and the