Main Menu

Cannot modify time

Started by LanceC, April 09, 2024, 01:08:28 PM

Previous topic - Next topic

LanceC

I am trying to replace modifydate with DateTimeOriginal in DNG format image which is converted from Sony A7M4 ARW file by Lightroom, but it continues coming with errors.
exiftool '-IFD0:modifydate<$EXIF:DateTimeOriginal' -v3 ./20231214test.dng
And here is the logs:
Setting new values from ./20231214test.dng
Writing IFD0:ModifyDate
Warning: [minor] Bad IDC_IFD SubDirectory start - ./20231214test.dng
Rewriting ./20231214test.dng...
  Editing tags in: IFD0 TIFF
  Creating tags in: IFD0 TIFF
  FileType = DNG
  FileTypeExtension = DNG
  MIMEType = image/x-adobe-dng
  Rewriting IFD0
    - IFD0:ModifyDate = '2024:03:31 00:35:32'
    + IFD0:ModifyDate = '2023:12:14 13:17:37'
  Rewriting SubIFD
    [nothing changed in SubIFD]
  Rewriting SubIFD1
    [nothing changed in SubIFD1]
  Rewriting SubIFD2
    [nothing changed in SubIFD2]
  Rewriting SubIFD3
    [nothing changed in SubIFD3]
  Rewriting SubIFD4
    [nothing changed in SubIFD4]
  Rewriting XMP
    [nothing changed in XMP]
  Rewriting ExifIFD
    [nothing changed in ExifIFD]
  Rewriting GPS
    [nothing changed in GPS]
  Rewriting DNGAdobeData
  Rewriting AdobeMakN
  Rewriting MakerNoteSony5
  Rewriting Tag202a
    [nothing changed in Tag202a]
  Rewriting HiddenInfo
    [nothing changed in HiddenInfo]
  Rewriting Tag9400c
    [nothing changed in Tag9400c]
  Rewriting Tag9401
  Rewriting ISOInfo
    [nothing changed in ISOInfo]
    [nothing changed in Tag9401]
  Rewriting Tag9402
    [nothing changed in Tag9402]
  Rewriting Tag9403
    [nothing changed in Tag9403]
  Rewriting Sony_0x9416
    [nothing changed in Sony_0x9416]
  Rewriting Tag9406
    [nothing changed in Tag9406]
  Rewriting Tag940c
    [nothing changed in Tag940c]
  Rewriting Tag940e
    [nothing changed in Tag940e]
  Rewriting Tag9050c
    [nothing changed in Tag9050c]
    [nothing changed in MakerNoteSony5]
    [nothing changed in AdobeMakN]
  Rewriting AdobeSR2
    [nothing changed in AdobeSR2]
    [nothing changed in DNGAdobeData]
  Error = [minor] Error copying hidden data
  Copying 667 image data blocks
Error: [minor] Error copying hidden data - ./20231214test.dng
    0 image files updated
    1 files weren't updated due to errors
What does it mean for Error = [minor] Error copying hidden data? Thanks.

Phil Harvey

It seems that the Sony hidden data may have been lost in the DNG conversion.  Add the -m option to ignore the minor error and write the file anyway.  I don't know what the hidden data is for, so I don't see a real problem doing this.

If you could upload the DNG sample somewhere I can take a look to see if the hidden data is really lost.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

LanceC

Quote from: Phil Harvey on April 10, 2024, 08:39:05 AMIt seems that the Sony hidden data may have been lost in the DNG conversion.  Add the -m option to ignore the minor error and write the file anyway.  I don't know what the hidden data is for, so I don't see a real problem doing this.

If you could upload the DNG sample somewhere I can take a look to see if the hidden data is really lost.

- Phil

Hi Phil,
The -m command plays the magic! I have successfully updated the date with real photo taken date that my cloud storage service use for timeline. All photos are now in the well organized way, much appreciate your help!

-Lance