Wrong date on duplicates from FileModifyDate

Hi there,

first of all: I love PhotoStructure! I am in the middle of the importing process of my whole library and testing the PLUS plan with the latest version 2.1.0-alpha.7 with Docker on a Synology NAS system.

My problem:

I have a lot of old edited files that where exported without proper information regarding the DateTimeOriginal. I also have the original file with correct information.

Original file looks like this:

$ exiftool -time:all -s original.jpg
FileModifyDate                  : 2022:02:18 10:50:19+01:00
FileAccessDate                  : 2023:01:06 14:54:51+01:00
FileInodeChangeDate             : 2022:12:31 12:15:15+01:00
ModifyDate                      : 2010:06:12 00:59:22
DateTimeOriginal                : 2010:05:29 16:28:00
CreateDate                      : 2010:06:12 00:59:22
MetadataDate                    : 2022:02:18 10:50:18+01:00
HistoryWhen                     : 2014:12:13 07:51:02.045Z, 2022:02:18 10:50:18+01:00
DateCreated                     : 2010:05:29
TimeCreated                     : 16:28:00+02:00
ProfileDateTime                 : 1999:06:03 00:00:00
DateTimeCreated                 : 2010:05:29 16:28:00+02:00

Edited duplicate file looks like this:

$ exiftool -time:all -s original-edited.jpg
FileModifyDate                  : 2010:05:29 16:28:00+02:00
FileAccessDate                  : 2023:01:05 16:06:06+01:00
FileInodeChangeDate             : 2023:01:06 15:02:26+01:00
ProfileDateTime                 : 2015:10:14 13:08:57

PhotoStructure does not recognize original-edited.jpg as duplicate file. It creates a new asset file with wrong date (here: 18:28:00 instead of 16:28:00).

Is there any way to fix this with PhotoStructure settings?

I was thinking of this workaround for all *-edited.jpg files:
$ exiftool '-datetimeoriginal<filemodifydate' -if '(not $datetimeoriginal or ($datetimeoriginal eq "0000:00:00 00:00:00")) and ($filetype eq "JPEG")' original-edited.jpg

After that date looks like this:

$ exiftool -time:all -s original-edited.jpg
FileModifyDate                  : 2023:01:06 15:03:14+01:00
FileAccessDate                  : 2023:01:06 15:03:14+01:00
FileInodeChangeDate             : 2023:01:06 15:03:14+01:00
DateTimeOriginal                : 2010:05:29 16:28:00
ProfileDateTime                 : 2015:10:14 13:08:57

Would this be recognized by PhotoStructure automatically or do I have to rebuild the library?

Thanks in advance,
Matthias

Howdy @igno2k !

The PhotoStructure sync process (currently) assumes prior asset aggregation was done properly, so, you’re correct, you’ll need to rebuild your library after repairing the metadata in your edited files.

I can detect this scenario automatically, though (if the library has a different captured-at time than the current file), and enqueue an asset-only rebuild (rather than a full library rebuild). I’ll see if that breaks anything unexpectedly.

Thanks for bringing up this issue!