DNG conversion issue

I am using LibRaw together with the rawPy wrapper (http://pythonhosted.org/rawpy/api/rawpy.RawPy.html) to read in DNG files into Python. Unfortunately the input image does not seem to be correctly read in.

The code I use is:

import rawpy
import imageio

newFile = 'GOPR0079.DNG'

with rawpy.imread(newFile) as raw:
rgb = raw.postprocess(demosaic_algorithm=None,output_color = rawpy.ColorSpace.raw)

imageio.imsave('tst.png',rub)

The input and output files can be accessed here:
https://stanford.box.com/s/4q0nea63wf6ws8rih0vsxn7yrbcmysco

Forums: 

Current LibRaw (0.18-beta1)

Current LibRaw (0.18-beta1) works fine with this image.

What version do you use?

-- Alex Tutubalin @LibRaw LLC

I used 0.17 and 0.18-beta,

I used 0.17 and 0.18-beta, both provide the same (wrong) output.

When you run your test, did you also use the Python interface?

I just used

I just used
dcraw_emu -T sample.DNG
to get sample.DNG.tiff

and tiff is OK.

Have not tried python bindings, i'm not a python programmer (even at small fraction)

-- Alex Tutubalin @LibRaw LLC