{"id":"image-x-adobe-dng","mimeType":"image/x-adobe-dng","name":"Adobe Digital Negative","shortName":"DNG","category":"Photography \u0026 Raw Imaging","extensions":[".dng"],"description":"The image/x-adobe-dng MIME type represents the Digital Negative (DNG) format, developed by Adobe in 2004. Built upon the ISO standard TIFF/EP framework, DNG was created as an open, universally compatible raw image format to solve the fragmentation caused by dozens of proprietary camera raw formats (like CR2, NEF, or ARW). It stores unprocessed or losslessly compressed sensor data, comprehensive XMP metadata, and often embeds a JPEG preview, ensuring long-term archival viability for digital photographers.","seo":{"title":"image/x-adobe-dng MIME Type | Developer Reference for DNG Files","description":"Complete reference for the image/x-adobe-dng MIME type: Adobe Digital Negative (DNG), raw image archiving, TIFF/EP structure, and magic bytes.","faqs":[{"question":"What is a DNG file?","answer":"A Digital Negative (DNG) is a universal raw image format developed by Adobe. It stores unprocessed sensor data from digital cameras and mobile devices, allowing photographers to non-destructively adjust exposure, white balance, and shadows without quality loss."},{"question":"Why convert proprietary camera raw files to DNG?","answer":"Converting proprietary raws (like Canon's CR2 or Nikon's NEF) to DNG ensures long-term archival accessibility. DNG is an openly documented standard, whereas camera manufacturers may eventually abandon support or software decoders for older proprietary formats."},{"question":"Does a web browser support DNG files?","answer":"No. Web browsers cannot natively render DNG files. Raw formats require \"developing\" or demosaicing algorithms to convert sensor data into a viewable RGB image. For web display, DNGs must be exported to JPEG, WebP, or AVIF."}]},"index":{"compression":["Lossless JPEG","Deflate","Lossy JPEG (DNG 1.4+)"],"browserSupport":{"score":1,"label":"None"},"commonUses":["Digital Photography Archival","Mobile Raw Capture (iOS ProRAW / Android Camera2 API)","Cross-Platform Raw Editing Workflows"]},"technical":{"magicBytes":{"hex":"49 49 2A 00 or 4D 4D 00 2A","ascii":"II*\\x00 or MM\\x00*"},"container":"TIFF/EP","compressionAlgorithm":["Lossless JPEG (Standard)","Lossy JPEG (Compression option)","Uncompressed"],"colorDepth":["12-bit","14-bit","16-bit","32-bit (Floating Point HDR)"],"transparency":true,"animation":false,"metadata":{"exif":true,"xmp":true,"iccProfile":true},"alphaChannel":true,"progressiveLoading":false,"hdrSupport":true},"history":{"developer":"Adobe Systems","released":"2004","specification":"DNG Specification (ISO 12234-2 / TIFF/EP compliant)"},"browserSupport":{"chrome":false,"chromeVersion":"None","firefox":false,"firefoxVersion":"None","safari":false,"safariVersion":"None","edge":false,"edgeVersion":"None","internetExplorer":false},"softwareSupport":[{"name":"Adobe Lightroom / Camera Raw","logo":""},{"name":"Capture One","logo":""},{"name":"Affinity Photo","logo":""},{"name":"RawTherapee","logo":""}],"conversion":{"convertTo":["jpeg","tiff","png","psd","avif"],"convertFrom":["cr2","cr3","nef","arw","raf","orf"]},"developer":{"httpHeaders":[{"header":"Content-Type","value":"image/x-adobe-dng"},{"header":"Content-Type","value":"image/dng"}],"htmlAccept":"image/x-adobe-dng, image/dng, .dng","fileDetection":["Check the first 4 bytes for standard TIFF little-endian (49 49 2A 00) or big-endian (4D 4D 00 2A) signatures.","Because DNG shares its header exactly with standard TIFF files, file sniffers will initially identify it as 'image/tiff'.","To definitively identify a DNG file, you must parse the TIFF Image File Directory (IFD) and check for the presence of the DNGVersion tag (Tag ID: 50706 or Hex 0xC612)."]},"prosCons":{"pros":["Openly documented specification guarantees long-term archival accessibility, freeing photographers from proprietary manufacturer lock-in","Lossless compression algorithms often result in files 15-20% smaller than uncompressed proprietary raw formats","Natively supported by modern smartphone operating systems (iOS and Android) for high-end mobile photography"],"cons":["Conversion from proprietary raw to DNG takes processing time and can strip specific, proprietary manufacturer metadata (like active D-Lighting or in-camera lens corrections)","File sizes are massive compared to standard JPEGs or HEIC files","Cannot be rendered natively in web browsers without server-side processing or WebAssembly decoders"]},"specifications":{"url":"https://helpx.adobe.com/camera-raw/digital-negative.html","rfc":"","mimeAliases":["image/dng","image/x-dng"]},"developerSnippets":{"python":"import magic\n# Libmagic will identify DNG files as standard TIFFs due to the shared 49 49 2A 00 / 4D 4D 00 2A header\nprint(magic.from_file('photo.dng', mime=True)) # Outputs 'image/tiff'","nodejs":"const FileType = require('file-type');\nconst type = await FileType.fromFile('photo.dng');\nconsole.log(type?.mime); // Usually resolves to 'image/tiff' unless the parser explicitly checks the DNGVersion IFD tag.","go":"import (\n    \"bytes\"\n    \"net/http\"\n)\n// http.DetectContentType reads the TIFF magic bytes and returns 'image/tiff'. \n// Advanced metadata parsers are required to read the 50706 IFD tag.","php":"$mime = mime_content_type('photo.dng');\necho $mime; // Standard PHP installations will resolve this to 'image/tiff'"},"relatedFormats":["tiff","jpeg"]}
