Introduction
DNG is an open raw image format published by Adobe in 2004. Most camera makers use a raw format of their own; DNG gives raw photos a single documented format that any program can read, with everything needed to develop the image stored in the file itself.
Some cameras and phones save DNG directly, including models from Leica, Pentax and Ricoh and the Apple ProRAW mode of recent iPhones. Adobe’s free DNG Converter turns other raw files into DNG.
Structure
A DNG file is a TIFF file, with the same header and image file directories, and extra
tags defined by the DNG specification. The DNGVersion tag marks the file as
DNG. The first directory usually holds a small preview image and the metadata, and the
raw sensor data sits in a sub-directory marked as the full resolution original.
Tags carry what a raw converter needs to develop the picture: the colour filter pattern of the sensor, black and white levels, colour matrices for two light sources, lens corrections and optional camera profiles. The raw data may be uncompressed or compressed without loss, and newer versions add lossy and JPEG XL compression.
0TIFF header byte order, 42, first IFD offset8 bytes…IFD 0 preview image,DNGVersion, colour and camera tagsvaries…Sub-IFD the raw sensor datavaries…Exif IFD exposure, lens and datevaries
Links
Software
- Adobe Lightroom (Windows, macOS, mobile)
- Adobe Photoshop with Camera Raw (Windows, macOS)
- Adobe DNG Converter (Windows, macOS)
- Capture One (Windows, macOS)
- darktable (Windows, macOS, Linux)
- RawTherapee (Windows, macOS, Linux)
Developers
Reference
- Digital Negative (DNG), Adobe, with the specification and the DNG SDK