Panasonic Lumix DC GH6 raw RW2 support

The raws created by the new DC GH6 camera by Panasonic use a new raw rw2 format

it seems using


I created an issue on rawtherapee bug tracker, but if some people have here knowledge in this field, I am also putting the information. I assume the code can be ported from and between if found.

(The raw files were created by me, feel free to use these in any way, if you need a licence WTFPL)

One file created by a GH6 is here

sets of white frame according to rawtherapee nomenclature.


Yes, this is completely new

Yes, this is completely new encoding format, nothing common with previous panasonic formats.

-- Alex Tutubalin @LibRaw LLC

Will GH6 raw format supported

Will GH6 raw format supported in the next release/snapshot?

Most likely not

Most likely not

-- Alex Tutubalin @LibRaw LLC

I tried to inspect a bit more

I tried to inspect a bit more the situation:

rawtherapee which uses some custom dcraw success in extracting the compressed raw data,
but it fails in decoding the decompressed structure.
I modified it to dump the uncompressed raw (which display as garbage currently).

For a 25 mb pixels image, there is exactly 50 mbytes of decoded data being decoded.
which correspond to 2 bytes per pixel, which seems to be confirming the 16 bits per pixel.

I tried making a black frame and a white frame,
just to see if I could understand something, but the result are not that great:

The first bytes of the frames are looking like that:

white frame:

00000000: dfce f87f 7b8c ffdb d77c 9d99 7c14 29bd  ....{....|..|.).
00000010: 91a7 d027 0405 22d3 147d 3371 f16b 0b07  ...'.."..}3q.k..

black frame:

00000000: 1ba4 1b9c 1b80 1bb0 b707 f8d9 cdf8 12fa  ................
00000010: f71f 4e32 e6ad f321 9dff d53f 2731 ead1  ..N2...!...?'1..

either they are crypted or salted,
either the colorspace is uncommon,
either I am missing something, which can be possible as I am far from an expert in this domain.

The data are there : (including the two RW2 files)


for the filesizes and basic descriptions

(the dng were producted by Adobe Dngconverter 14_3 under wine staging 7.2 )

RawDigger a LibRaw product, supports GH6 image decoding

If you download a trial of RawDigger at you can open a GH6 raw file now. RawDigger is a for-purchase product of LibRaw, correct (it says LibRaw LLC in the footer of the site page).

Any chance someone from LibRaw can answer the question, "if RawDigger now supports GH6, does that mean that a current or soon to be released update to LibRaw will have support for the GH6 .RW2 format?"