Lightrooom: Edit Capture Time leaves NEF files inconsistent

  • 2
  • Problem
  • Updated 3 years ago
  • (Edited)
It appears that at least some NEF files do not strictly follow the Exif standard, causing LR's Metadata > Edit Capture Time command to record inconsistent values in the files. LR could insist that Nikon strictly follow the standard (which wouldn't address NEF files produced by existing Nikon cameras), or it could easily accommodate NEF files with a simple workaround.

Details:

NEF files appear to record DateTimeOriginal in both ExifIFD and IFD0, though the Exif standard says it should appear in just ExifIFD. For example, consider this sample D600 NEF from DPReview:

http://s3.amazonaws.com/movies.dprevi...

Here's what Exiftool shows:

$ exiftool.exe -a -G1 ISO100.NEF | grep -i "date/time"

[IFD0] Date/Time Original : 2012:03:01 07:59:05
[ExifIFD] Date/Time Original : 2012:03:01 07:59:05
[Composite] Date/Time Original : 2012:03:01 07:59:05.40

Note that DateTimeOriginal is recorded in both IFD0 and ExifIFD. In LR 4.4RC, when I give Metadata > Edit Capture Time followed by Metadata > Save Metadata To File, LR correctly updates ExifIFD:DateTimeOriginal, while it leaves IFD0:DateTimeOriginal untouched:

$ exiftool.exe -a -G1 ISO100.NEF | grep -i "date/time"
[IFD0] Date/Time Original : 2012:03:01 07:59:05
[ExifIFD] Date/Time Original : 2013:03:01 07:59:05
[Composite] Date/Time Original : 2012:03:01 07:59:05.40

This results in inconsistent values for ExifIFD:DateTimeOriginal and IFD0:DateTimeOriginal.

At least two tools get confused by this. Exiftool itself gives preference to IFD0:DateTimeOriginal when reading the value. And Nikon's NEF codec for Windows also appears to give preference to IFD0.

LR could easily accommodate NEF's nonconformance by doing what Exiftool does: Always write ExifIFD:DateTimeOriginal, but if IFD0:DateTimeOriginal is present, update that as well. This would handle all the existing Nikon cameras without waiting for Nikon to conform with the standard.

See this thread for more details:

http://forums.adobe.com/message/51936...
Photo of John R. Ellis

John R. Ellis, Champion

  • 3589 Posts
  • 928 Reply Likes

Posted 5 years ago

  • 2
Photo of Reinhard Köhler

Reinhard Köhler

  • 2 Posts
  • 0 Reply Likes
It doesn't work with raw files from Canon and a German LR 5 either
Photo of David Franzen

David Franzen, Employee

  • 97 Posts
  • 20 Reply Likes
Thank you for the technical info about the proprietary date-time metadata in NEF and how other software (like Nikon's codec) prioritize reading the apparently redundant tags.

As long as this limitation exists, and you want to take the risk of modifying your NEF files instead of treating them exclusively read-only (Lightroom's default behavior), I suggest you investigate using Nikon's software to change the date time or perhaps using Exiftool. Personally, I'd recommend that you incorporate into your workflow saving a backup of the original, un-edited, NEFs as well.

Thanks,
David
Photo of Robert Frost

Robert Frost

  • 392 Posts
  • 51 Reply Likes
ExifToolGUI deletes the wrong entry in IFD0 and just leaves the correct entry in IFD (according to Phil Harvey). Just confirmed that with my nefs.

bob Frost
Photo of John Ellis

John Ellis

  • 117 Posts
  • 12 Reply Likes
The problem still exists in LR 6.0.1 / OS X 10.10.3.