Project

General

Profile

Bug #10545

'Create HDR' leads to broken DNG files

Added by Christian Stussak almost 4 years ago. Updated almost 4 years ago.

Status:
Confirmed
Priority:
Low
Assignee:
-
Category:
General
Target version:
-
Start date:
06/20/2015
Due date:
% Done:

10%

Affected Version:
git development version
System:
all
bitness:
64-bit
hardware architecture:
amd64/x86

Description

The HDR DNG files created by darktable seem to be incompatible with the DNG standard. They open fine in darktable, but not in
  • Windows photo viewer using Adobe DNG Codec 2.0
  • RawTherapee v4.2.210 (image display as pink/magenta noise)
  • dcraw v9.22 and ufraw v0.22 ("Cannot decode file ...")

Here is a HDR DNG file created by darktable for testing:
https://www.dropbox.com/s/ei01g8jzjr2j9m8/darktable.dng?dl=0

I also asked a friend to develop this file in Adobe Lightroom, but he hasn't answered yet. I will add the information ASAP.


Related issues

Related to darktable - Bug #10177: HDRMerge DNG-format Fixed 10/27/2014

History

#1 Updated by Pedro CĂ´rte-Real almost 4 years ago

  • System changed from Mac OS X to all
  • Affected Version changed from 1.6.7 to git development version
  • % Done changed from 0 to 10
  • Status changed from New to Confirmed

Yeah, our hdr merge dng generation code is a mess and strictly for internal darktable use right now. The whitebalance is not being properly saved for example. We should definitely fix it.

#2 Updated by Christian Stussak almost 4 years ago

Maybe the cleanup of the DNG export code can go along with the DNG import code (#10177).

Is the current export using integer or float values? The HDR DNGs created by darktable are pretty huge compared to those generated by HDRMerge. Maybe you can just get inspiration (i.e. code) from HDRMerge. It allows to select either a 16, 24 or 32 bit float DNG 1.4 format for export and 32 bits are certainly almost never needed (they result in huge DNGs).

#3 Updated by Tobias Ellinghaus almost 4 years ago

  • Related to Bug #10177: HDRMerge DNG-format added

#4 Updated by Christian Stussak almost 4 years ago

I said above, that I will provide the info on darktable-exported DNG imported into Lightroom ASAP. Well, I am a little late. My fried said they don't open in Lightroom, but he hasn't provided any error message (which is no surprise to me).

In order to fix this bug, you may re-use some of the code provided in https://github.com/jcelaya/hdrmerge (DNGFloatWriter.*).

Also available in: Atom PDF