Skip to content
botrx555 edited this page Jul 14, 2026 · 3 revisions

m8raw2dng2

m8raw2dng2

A refined, from-scratch Python reimplementation of Arvid Kuehl's m8raw2dng v1.20 - the converter that turns the Leica M8's uncompressed diagnostic-mode .RAW dumps into Adobe DNG.

The plain conversion is byte-for-byte what the original tool produced (bit-identical when given an exact aperture), cross-platform, with a set of opt-in refinements on top. See Fidelity for the exact parity guarantees.

Why uncompressed RAW

The M8's normal in-camera DNG compands the sensor's 14-bit read-out down to 8 bits before writing. The service-mode .RAW is the full uncompressed 14-bit dump - it preserves the shadow latitude and tonal steps the 8-bit path discards. That is the whole reason a small but active part of the M8 community shoots it.

What it does, in one line

Reads a .RAW + paired .JPG (and optional .BIA), decodes the raw CFA mosaic, attaches the correct metadata, levels, colour matrices and crop, and writes a byte-faithful DNG - with optional darkfield, defect-column repair, aperture recovery and full-resolution preview.

Start here

Key facts

Language Python 3.x (CLI + Tk GUI)
Platforms Windows, macOS, Linux
Camera Leica M8 / M8.2, service-mode uncompressed RAW
Output Adobe DNG, 16-bit linear CFA (14-bit data)
Licence MIT (this reimplementation's own code)
Original m8raw2dng by Arvid Kuehl - see Credits and References

Status

Beta (2.13.1b0). Stable in everyday use; feedback and issue reports welcome via the repo.

Clone this wiki locally