# RAW & DNG Inspector and Developer > Read a DNG or camera RAW file: metadata, decode report and a developed preview. 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. Part of usefulweb.app (https://usefulweb.app/). Part of [Lumina](https://lumina.usefulweb.app/) (ownerApp: lumina). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://luminarawinfo.usefulweb.app/ (interactive tool at https://luminarawinfo.usefulweb.app/tool) - JSON API: POST https://luminarawinfo.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://luminarawinfo.usefulweb.app/api/v1/tool) - OpenAPI: https://luminarawinfo.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://luminarawinfo.usefulweb.app/mcp - tool `lumina_raw_info` ## Inputs - file (file, required): DNG or camera RAW file (DNG, CR2, NEF, ARW, ORF, RW2, PEF; up to 50 MB) - Deleted after processing; the developed PNG can be downloaded for about 2 hours. - output (select): Image output - size (integer): Longest side of the developed PNG (px) - whiteBalance (select): White balance - temperature (integer): Temperature for custom white balance (K) - tint (integer): Tint for custom white balance (−100 green … 100 magenta) - exposure (number): Exposure (EV) - baselineExposure (boolean): Apply the file’s baseline exposure - tone (select): Tone curve - demosaic (select): Demosaicing ## Method - 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.