RAW & DNG Inspector and Developer
Read a DNG or camera RAW file: metadata, decode report and a developed preview.
How it works
Upload a DNG to see its camera, raw layout, compression, black and white levels, colour matrices and as-shot white balance, and get a developed PNG made from the raw sensor data with your white balance, exposure and tone settings. For Canon CR2, Nikon NEF, Sony ARW, Olympus ORF, Panasonic RW2 and Pentax PEF files it reports the metadata and extracts the embedded JPEG preview, saying clearly that the raw data itself is not decoded.
- The file is read as a TIFF structure (byte order, IFD chain, SubIFDs, EXIF IFD; every offset bounds-checked). DNG is recognised by DNGVersion; CR2, NEF, ARW, ORF, RW2 and PEF by their header or Make tag — never by the file name.
- DNG raw data: the full-resolution IFD with a colour filter array or linear raw data. Uncompressed 8/16-bit and bit-packed 10–14-bit samples and lossless JPEG (ITU-T T.81 process 14: Huffman, predictors 1–7, restart intervals) in strips or tiles are decoded, then the LinearizationTable, ActiveArea, BlackLevel (repeat pattern and row/column deltas) and WhiteLevel are applied.
- White balance divides by AsShotNeutral (or the neutral of a chosen temperature and tint on the Planckian locus); values above the white level are clipped. 2 × 2 Bayer data is demosaiced with Malvar–He–Cutler 5 × 5 gradient-corrected interpolation or bilinear interpolation.
- Colour: camera RGB → XYZ D50 with the ForwardMatrix, or the inverted ColorMatrix with Bradford adaptation; two calibration illuminants are interpolated by inverse colour temperature. XYZ D50 → linear sRGB (Bradford to D65), exposure × 2^(EV + BaselineExposure), then a linear or exponential base tone curve and the sRGB transfer function. The DefaultCrop and Orientation are applied; larger results are box-averaged in linear light.
- Other camera RAW formats: their raw encodings and colour responses are camera-specific, so only the largest embedded JPEG preview (from standard TIFF tags) is extracted, unchanged.
- Not applied: DNG opcode lists (lens and bad-pixel corrections), lossy-JPEG, deflate, floating-point and JPEG XL DNG data, non-Bayer colour filters (X-Trans), camera profiles (DCP/ICC), noise reduction and highlight reconstruction.
Sources
- Digital Negative (DNG) Specification, version 1.7.1.0 (Adobe)
- ITU-T T.81 (ISO/IEC 10918-1): Digital compression and coding of continuous-tone still images — lossless mode (Annex H) (ITU-T)
- TIFF Revision 6.0 (Adobe / Aldus)
- Malvar, He & Cutler (2004): High-quality linear interpolation for demosaicing of Bayer-patterned color images (IEEE ICASSP)
- Planckian locus: cubic-spline approximation by Kim et al. (2002) and CIE 1960 UCS (Wikipedia)
Part of Lumina
-
Lumina Photo editor & image toolkit
Bring out what you saw. A free photo studio.
Related tools
- HEIC/RAW Image Converter – Convert iPhone HEIC, AVIF and camera RAW (CR2, CR3, NEF, ARW, DNG…) to JPG, PNG or WebP.
- EXIF Inspector & Cleaner – See all photo metadata (EXIF, GPS, XMP, IPTC, MakerNotes) and download a cleaned copy.
- Photo Histogram & Clipping Analyzer – Inspect RGB histograms, clipped channels and tonal percentiles in a photo.
- Photo Tone Curves & Profile Processor – Apply levels, RGB curves and white balance, or reuse a Lumina photo profile.
How to use the RAW & DNG Inspector and Developer
Check what is inside a DNG or camera RAW file, develop DNG sensor data into a PNG with your own white balance and exposure, or pull out the embedded preview.
What it is for
A RAW file is not a picture yet. It holds the sensor's raw measurements plus the numbers needed to turn them into colours: black and white levels, a colour matrix and the white balance the camera saw. This tool shows you those numbers and, for DNG files, develops the raw data itself into a PNG you can look at or edit.
Use it to see why a DNG looks wrong elsewhere, to compare white balance settings or to get a quick, neutral rendering without installing a RAW converter.
For Canon CR2, Nikon NEF, Sony ARW, Olympus ORF, Panasonic RW2 and Pentax PEF files the tool reads the metadata and extracts the camera's embedded JPEG preview. Their raw data uses camera-specific encodings and colour responses, so it is not decoded, and the result says "Preview only". DNG data that is lossy, deflate- or JPEG XL-compressed, floating-point or from a non-Bayer sensor (X-Trans) is also reported as preview only.
Worked example
The first example is a small synthetic 96 × 64 DNG made by Lumina's own DNG writer: six colour patches above a grey ramp, 14-bit, lossless JPEG compressed, lit by warm 3200 K light. With the default settings the tool returned:
DNG from Lumina Synthetic chart: raw data developed to a 96 × 64 PNG.
The callout says Full RAW decode. The layout table lists an RGGB colour filter, black level 512 and white level 15000, and the colour table shows AsShotNeutral 1, 0.6005, 0.3181: the camera saw much less blue than red, as you would expect under a tungsten lamp. The metrics translate that into 3212 K and tint 0, with 0.23 % clipped pixels. The greys in the PNG come out neutral.
Now change White balance to Tungsten (2850 K). The temperature drops to 2860 K, the picture turns slightly blue, and clipped pixels rise to 13.2 %: a colder correction multiplies the blue channel more, so more pixels hit the white level.
The second example is upright: an uncompressed 12-bit BGGR file with orientation 6, a 2-pixel default crop and daylight white balance at +0.5 EV. The 100 × 68 sensor area becomes a 64 × 96 PNG (cropped and turned), with an exposure gain of 1.4142 ×.
How to read the result
- Callout: Full RAW decode, Preview only or Not readable, with the reason.
- Download developed PNG or Download embedded preview: the image. Developed PNGs are 8-bit sRGB without camera metadata; previews are the camera's JPEG, unchanged and stored unrotated.
- File and raw layout: camera, exposure data, sensor size, filter pattern, bit depth, compression, black and white levels, crop, linearization table and any DNG opcodes (listed, not applied).
- Colour calibration: AsShotNeutral, the colour matrices with their illuminants and BaselineExposure.
- Metrics: the white balance actually used, the clipped share and the total exposure gain.
Tips and common mistakes
- If the picture looks dark, check BaselineExposure: many phones store a negative value. Turn off "Apply the file's baseline exposure" or raise Exposure.
- A high clipped share with "As shot" usually means real overexposure; with a preset it can be the white balance itself.
- Use Linear tone to judge exposure; the base curve brightens mid-tones like a camera rendering.
- Set Longest side to 4096 for more detail; the PNG is box-averaged in linear light.
FAQ
Does it develop CR2, NEF or ARW raw data?
No. Those files open as preview only. Convert them to DNG with a converter you trust, or use the HEIC/RAW converter, which uses LibRaw on the server.
Is the colour the same as in Lightroom?
No. The tool uses the file's own matrices but no camera profile, no lens corrections and no highlight recovery, so it gives a neutral baseline.
Can I edit the result further?
Yes. Lumina opens DNG files with the same engine on your device and puts the developed photo into the editor.
What happens to my file?
It is processed on the server and deleted after about two hours; the PNG can be downloaded during that time.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://luminarawinfo.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://luminarawinfo.usefulweb.app/mcp· tool namelumina_raw_info
Example request
curl -s -X POST https://luminarawinfo.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'