Skip to content

Interoperability

botrx555 edited this page Jul 14, 2026 · 2 revisions

Interoperability

The output is a standard Adobe DNG - a single uncompressed 16-bit strip of the raw CFA mosaic (linear, undemosaiced), with WhiteLevel, BlackLevel (when -b), the CFA phase, DefaultCrop, Leica M8 colour matrices (Standard-A + D65), AsShotNeutral, a full EXIF sub-IFD and the Leica MakerNote copied verbatim. Any raw developer that reads DNG opens it as an ordinary raw file and demosaics it itself. See File Formats for the exact structure.

Adobe Lightroom / Camera Raw (ACR)

Opens as a normal raw. White balance comes from AsShotNeutral; the embedded Leica matrices drive colour (or ACR's own M8 profile, if you pick one). The image opens at the cropped 3964 x 2642 (full 3968 x 2646 if you converted with --no-crop).

Two practical notes:

  • For a correct Finder / thumbnail and a smaller file, convert with -p --legacy-preview (a JPEG preview in IFD0). The default -p keeps the raw in IFD0, which some viewers render as a magenta mosaic. See Troubleshooting.
  • Opening a DNG in ACR/Lightroom with "Update embedded JPEG previews" enabled can rewrite the file on open (refreshing the preview and recompressing the raw), which changes its bytes and shrinks it. That is ACR's doing, not the converter's; if you want the file left exactly as written, disable that preference or work on copies.

darktable

Opens the linear-CFA DNG and demosaics it. Colour comes from the embedded matrices or darktable's own M8 input profile; white balance from AsShotNeutral. Nothing special is required - treat it like any M8 raw.

RawTherapee

Same as darktable: opens as a raw DNG, demosaics, and reads the embedded colour/WB data. No special handling.

exiftool

Reads everything the tool writes, which makes it the quickest way to verify output. The EXIF and the Leica MakerNote are present (the MakerNote is copied verbatim from the source JPEG), so:

exiftool file.dng

shows Software, WhiteLevel, BlackLevel, AsShotNeutral, FNumber, the crop tags, and the full MakerNote (body serial, ISO, exposure, meters, focal length). Useful for confirming a conversion did what you expected, or for comparing two files.

Between m8raw2dng2 and the original tool

The two converters interoperate at the pixel and tag level (a bare -v DNG is byte-identical bar FNumber), but two things do not carry across directly:

  • sensdb.ini defect lines. m8raw2dng2 writes a defect column as one Line = x1 y1 x2 y2 key; the original wants four separate Line = keys (one integer each). The RAW-space column numbers are identical, so a column m8raw2dng2 detects is the same x you would hand-write for the original, but a sensdb.ini written by one tool is not consumed as-is by the other. The LevelCorrection block (the darkfield itself) is the same %f format in both. See Databases.
  • The standard-M8-DNG input mode is the original's alone. The original can read a genuine in-camera 8-bit M8 DNG (3920 x 2638) to fix its lens/EXIF; m8raw2dng2 has no such mode. Conversely the original rejects a RAW+JPG-derived DNG (the kind m8raw2dng2 emits) with Error #0019. See The Original Tool.

Notes that apply across all of them

  • Uncompressed by design. The raw strip is stored uncompressed (~21 MB), which is what keeps output byte-faithful to the reference. Files are therefore larger than a typical lossless-compressed DNG. Recompressing with the Adobe DNG Converter shrinks them but changes the bytes - see Fidelity.
  • Shadow tint. If shadows read green or magenta in a developer, that is the black point - adjust -b at conversion time (green = raise, magenta = lower). See The Math.
  • 14-bit carries through. Because the DNG holds the full 14-bit data, heavy shadow lifts and contrast moves band far less than the camera's in-built 8-bit DNG. That is the whole point of the format.

Clone this wiki locally