News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Process images only if FileModifyDate not equals FileName

Started by vicmarto, February 23, 2019, 09:58:43 PM

Previous topic - Next topic

vicmarto

Quote from: Phil Harvey on February 27, 2019, 10:03:14 AM
I'm afraid that I'm a bit lost here.  When you say the FileModifyDate of your photos is a total mess, can you give an example for one file?

- Phil

This one, for example:

$ exiftool -s -time:all -a -G0:1 2002-12-27\ 22.14.32-1.jpg
[File:System]   FileModifyDate                  : 1990:01:01 00:00:00+09:00
[File:System]   FileAccessDate                  : 1990:01:01 00:00:00+09:00
[File:System]   FileInodeChangeDate             : 1990:01:01 00:00:00+09:00
[EXIF:IFD0]     ModifyDate                      : 2002:12:27 22:14:32
[EXIF:ExifIFD]  DateTimeOriginal                : 2002:12:27 22:14:32
[FlashPix]      ExtensionCreateDate             : 0
[FlashPix]      ExtensionModifyDate             : 0

Phil Harvey

Ah.  The problem is that your last command needs to set the FileModifyDate for files in the destination directory, not the source directory.  So you can't use "." as a directory name in the command with -if either.  See my other post when I move this out of the -common_args, and change the "." for this command only.

- 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 ($).

vicmarto

Thanks Phil, let's continue in the other topic, now they are related.