|
I am having problems with exiftool v7.17 (windows command line version). Trying to fix wrong date/time in the metadata, but see strange things happening. I concluded that there can only be either "IFD0:DateTimeOriginal" or "ExifIFD:Date/Time Original", while both exists in the original file (and are always available in Nikon NEF files).
I played around with a test file and created the output below:
1. list the dates in the "original" file
2. copy IFD0:DateTimeOriginal to ExifIfd:DateTimeOriginal
3. list the dates in the "modifed" file: IFD0:DateTimeOriginal is deleted (not what I expected/wanted)
4. Copy date manual to IFD0:DateTimeOriginal
5. List the dates in the file again: now ExifIfd:DateTimeOriginal is deleted (again not what I expected)
Am I doing something wrong or is there a bug in exiftool?
Jan-Willem
Dates in original file
======================
[File] File Name : D200-8790.NEF
[IFD0] Modify Date : 2007:07:29 10:52:01
[ExifIFD] Create Date : 2007:07:29 10:52:01
[ExifIFD] Date/Time Original : 2007:07:29 02:00:00
[IFD0] Date/Time Original : 2007:07:29 10:52:01
[] Time Zone Offset : -
==> ExifIFD:Date/Time Original should be the same as the other dates
Repair ExifIFD:Date/Time Original
=================================
Perform exiftool command
------------------------
exiftool "-ExifIfd:DateTimeOriginal<IFD0:DateTimeOriginal" -v5 "D200-8790.NEF"
Setting new values from D200-8790.NEF
Writing ExifIFD:DateTimeOriginal
Rewriting D200-8790.NEF...
Editing tags in: ExifIFD IFD0 TIFF
Creating tags in: ExifIFD IFD0 TIFF
FileType = NEF
MIMEType = image/x-raw
ExifByteOrder = MM
Rewriting IFD0
Rewriting SubIFD
Rewriting SubIFD1
Rewriting ExifIFD
- ExifIFD:DateTimeOriginal = '2007:07:29 02:00:00'
+ ExifIFD:DateTimeOriginal = '2007:07:29 10:52:01'
Rewriting MakerNotes
Rewriting NikonPreview
Rewriting GPS
- IFD0:DateTimeOriginal = '2007:07:29 10:52:01'
Copying 1 image data blocks
1 image files updated
Result
------
[File] File Name : D200-8790.NEF
[IFD0] Modify Date : 2007:07:29 10:52:01
[ExifIFD] Create Date : 2007:07:29 10:52:01
[ExifIFD] Date/Time Original : 2007:07:29 10:52:01
[] Date Time Original : -
[] Time Zone Offset : -
Set IFD0:DateTimeOriginal
=========================
Perform exiftool command
------------------------
exiftool "-IFD0:DateTimeOriginal = '2007:07:29 10:52:01'" -v5 "D200-8790.NEF"
Writing IFD0:DateTimeOriginal
Rewriting D200-8790.NEF...
Editing tags in: IFD0 TIFF
Creating tags in: IFD0 TIFF
FileType = NEF
MIMEType = image/x-raw
ExifByteOrder = MM
Rewriting IFD0
Rewriting SubIFD
Rewriting SubIFD1
Rewriting ExifIFD
- ExifIFD:DateTimeOriginal = '2007:07:29 10:52:01'
Rewriting MakerNotes
Rewriting NikonPreview
Rewriting GPS
+ IFD0:DateTimeOriginal = '2007:07:29 10:52:01'
Copying 1 image data blocks
1 image files updated
Result
------
[File] File Name : D200-8790.NEF
[IFD0] Modify Date : 2007:07:29 10:52:01
[ExifIFD] Create Date : 2007:07:29 10:52:01
[] Date Time Original : -
[IFD0] Date/Time Original : 2007:07:29 10:52:01
[] Time Zone Offset : -
|