|Introduction | Sustainability Factors | Content Categories | Format Descriptions | Contact|
|Full name||Adobe Digital Negative (DNG), Version 1.1|
File format for storing and interchanging CAM_RAW (camera raw) images, usually accompanied by JPEG secondary version(s) of the images. The raw image data is processed for placement in the DNG file wrapper by software applications like Adobe Camera Raw, a plug-in for PhotoShop. These applications give users options for processing the raw image data into various versions, as indicated by the "may contain" relationships in this description and discussed in Notes below. The "default" action usually produces a version of the still-mosaiced raw data compressed with JPEG_orig_LL. The conversion applications also generate special metadata about image characteristics that is recorded under DNG tags that represent an extension to the normal TIFF set; see Notes below. The special metadata is later used in various applications that interpret the camera raw data to produce a variety of image outputs.
Many commentators refer to DNG as an extension of TIFF_6 format and note its compatibility with the TIFF/EP standard. The DNG specification states, "It is possible (but not required) for a DNG file to simultaneously comply with both the Digital Negative specification and the TIFF/EP standard." (p. 10)
In Notes below, see the comment concerning what is sometimes called Linear DNG as compared to Raw DNG.
|Production phase||Middle-state format.|
|Relationship to other formats|
|Subtype of||TIFF_6, TIFF, Revision 6.0. DNG listed here as subtype of TIFF_6. Adobe and others describe the relationship as "extension"; Comments welcome.|
|May contain||CAM_RAW, Camera Raw Formats (Group Description)|
|May contain||JPEG_orig_LL, JPEG Original Lossless Compression (ISO/IEC 10918). In DNG, this compression is applied to the raw camera data.|
|May contain||JPEG_DCT_BL, JPEG DCT Compression Encoding, Baseline. Used when the Photometric Interpretation is YCbCr or grayscale.|
|May contain||Linear raw when produced by certain cameras or by de-mosaicing CFA data. Not described at this Web site at this time.|
|May contain||EXIF_2_2, Exif Exchangeable Image File Format, Version 2.2. Block of metadata; the Exif specification title uses the terminology "image file format."|
|May contain||XMP data, not described at this Web site at this time.|
|Has earlier version||Adobe Digital Negative (DNG), Version 126.96.36.199 (2004), not described at this Web site at this time|
|Has later version||Adobe Digital Negative (DNG), Version 188.8.131.52 (2008), not described at this Web site at this time|
|Has later version||Adobe Digital Negative (DNG), Version 184.108.40.206 (2009), not described at this Web site at this time|
|Has later version||Adobe Digital Negative (DNG), Version 220.127.116.11 (2012), not described at this Web site at this time|
|Other||Adobe CinemaDNG (2009), for sequence of moving image frames, not described at this Web site at this time|
|LC experience or existing holdings||See TIFF_6|
|LC preference||None established. LC staff, however, have intermittently discussed the value of a preference for born-digital photographs in DNG form ("somewhat normalized"), as compared to camera raw files (CAM_RAW; "too raw") or uncompressed TIFF files (TIFF_UNC; "too cooked"). The Library of Congress Recommended Formats Statement (RFS) includes DNG as an acceptable format for photographs in digital form and other graphic images in digital form. It is also a preferred format for 2D and 3D Computer Aided Design raster images. The RFS does not specify a version of DNG.|
|Disclosure||Fully documented. Developed by Adobe Systems, Inc.|
|Documentation||Digital Negative (DNG) Specification, version 18.104.22.168 (February 2005). Note that this version is from the Internet Archive; when consulted in February 2014, Adobe's own site offered access to version 22.214.171.124, with version 126.96.36.199 discoverable by a search.|
|Adoption||The breadth and depth of support is outlined in the Wikipedia Digital Negative article. Adobe's DNG converter applications add support for proprietary camera formats on a regular basis. Barry Pearson's DNG products Web page ("frozen" as of the end-of-2005 update) lists 77 non-Adobe products that support DNG.|
|Licensing and patents||Adobe statement consulted in February 2012: "Adobe provides the DNG Specification to the public for the purpose of encouraging implementation of this file format in a compliant manner. This [Web page] is a patent license granted by Adobe to individuals and organizations that desire to develop, market and/or distribute hardware and software that reads and/or writes image files compliant with the DNG Specification."|
|Transparency||Wrapper is transparent; encoded image bitstream may require tools to render.|
|Self-documentation||See Tags for TIFF and Related Specifications. Metadata may be embedded in a DNG file using tags from (1) TIFF_6, (2) TIFF/EP or EXIF_2_2 (see also TIFF_UNC_EXIF), (3) IPTC (TIFF tag 33723), and (4) XMP (TIFF tag 700).
Regarding TIFF/EP and EXIF, the DNG specification states that TIFF/EP stores the tags in IFD 0 (IFD stands for Image File Directories, in effect segments of a TIFF file), while TIFF_UNC_EXIF stores them in a separate IFD. Either location is allowed but the EXIF location is preferred. Proprietary metadata that may be used by camera manufacturer's raw convertors is to placed under private tags, in private IFDs, and/or a private MakerNote. (pp. 12-13)
|Technical protection considerations||None|
|Normal rendering||The format behaves like any TIFF file. Images encoded as raw will be rendered with a "normal" look by a reader that can interpret the special metadata in a DNG file.|
|Clarity (high image resolution)||Raw image data and DNG's special metadata support the output of images with high levels of clarity, depending upon the capabilies of the camera used to produce them. See Notes below.|
|Color maintenance||Excellent. Support provided for ICC profiles and for color space identification.|
|Support for vector graphics, including graphic effects and typography||Not relevant in this camera-oriented format.|
|Support for multispectral bands||Not investigated for this description.|
|Functionality beyond normal rendering||The format is intended for use with image manipulation tools that execute a variety of processes to transform the DNG into "pictures" suitable for different outputs.|
||Recommended by the specification (p. 11)|
||The specification states that "readers should accept either the '.DNG' or '.TIF' extensions for compatibility with TIFF/EP." (p. 11)|
|Internet Media Type||image/tiff
||This is suggested in an indirect way by some commentators; Comments welcome|
|Magic numbers||Not found.||Comments welcome. DNG may use the magic numbers associated with TIFF_6; Comments welcome|
|Wikidata Title ID||Q27866059
Rationale for DNG. From the specification: "Seeking a greater degree of flexibility and artistic control, professional photographers increasingly opt to manipulate raw data from their digital cameras. Unlike JPEG and TIFF formats which store images that have been processed by the camera, camera raw files capture unprocessed or minimally processed data directly from the camera sensor. Because they are analogous to film negatives in a photographer's workflow, camera raw formats are often referred to as 'digital negatives.' Camera raw formats offer both advantages and disadvantages. One advantage is increased artistic control for the end user. The user can precisely adjust a range of parameters, including white balance, tone mapping, noise reduction, sharpening and others, to achieve a desired look. One disadvantage is that unlike JPEG and TIFF files which are ready for immediate use, camera raw files must be processed before they can be used, typically through software provided by the camera manufacturer or through a converter like the Adobe Camera Raw plug-in for Adobe Photoshop software." (p. 9) Adobe provides a free Adobe DNG Converter that translates raw files from many of today's popular cameras.
Re: TIFF tags. The DNG specification (version 1.1, discussed here) lists some restrictions or extensions for the TIFF tags BitsPerSample, Compression, Photometric Interpretation, and Orientation (pp. 15-16). It also lists DNG-specific tags, including but not limited to: DNGversion, UniqueCameraModel, LocalizedCameraModel, CFAPlaneColor (CFA stands for Color Filter Array), CFALayout, LinearizationTable, BlackLevel, WhiteLevel, DefaultScale (for cameras with non-square pixels), BestQualityScale, DefaultCropOrigin, DefaultCropSize, CameraSerialNumber, LensInfo, RawDataUniqueID, OriginalRawFileName, OriginalRawFileData (to incorporate the raw file as created), AsShotICCProfile, and CurrentICCProfile (pp. 17-44). The specification also describes how raw camara sensor values are mapped to linear reference values (p. 45) and how camera color space is mapped to CIE XYZ color space (pp. 47-48).
"Raw DNG" and "Linear DNG." The photographer Barry Pearson writes that DNG files are well understood to contain "mosaiced" sensor data (typically from a Bayer array), and he calls this format Raw DNG. But he reminds readers of another option, Linear DNG, said to be "a rarer variety of DNG, containing RGB image data (or not just RGB!) arranged in a rectilinear format. (Most practical examples of Linear DNG hold RGB image data, but it isn't a constraint, and 4 or more colours are allowed. For example, A Linear DNG obtained by converting the raw file from a Sony F828 has an extra channel, 'Aqua,' rather like Cyan). This RGB image data may have come from demosaiced raw image data, or from another source such as TIFF or JPEG or something else. (There is little difference between 'demosaiced' and 'never mosaiced')."
Jeff Schewe, writing in a 2005 issue of PhotoshopNews.com reported that Adobe's DNG convertor application "allows you to either keep the DNG in the un-demosaiced form or to demosaic the file and convert to a linear file. Generally, you'll want to keep the file in its un-demosaiced form as there is a space savings. Linear DNGs have already been converted to RGB files and therefore are larger." The article as presented includes an inserted editor's note: "[Digital imaging expert] Bruce Fraser sent the following comment regarding Linear DNG: 'The only reason to use Linear DNG is to feed the file to a DNG reader that can't understand the particular flavor of DNG that DNG Converter creates for the specific camera, or to act as an interchange format—e.g., lens correx with DxO can write out a linear DNG that ACR can read. This is typically NOT an option people want, not because of size considerations, but because it's no longer really raw—it's half-baked. All the operations that take place during demosaicing are set in stone and can't be redone.'"