Add new comment

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: