Main Menu

-FileModifyDate

Started by DeckG, November 03, 2020, 12:32:49 AM

Previous topic - Next topic

DeckG

Hi,
I've been struggling with this for some time now, I'm trying to set the DateTimeOriginal stamp on the first file to be the same as the original. I have a folder with 300+ images I need to do this with.
I've tried exiftool "-FileModifyDate<DateTimeOriginal" "-FileCreateDate<DateTimeOriginal" -ext .JPG Edited\KDOutput\JPEG\ and it says the 314 images are updated but nothing has changed??
Any help appreciated!



Shoot 3>exiftool -s -time:all Edited\KDOutput\JPEG\Q360_20201101_070150_000009.JPG
FileModifyDate                  : 2020:11:01 07:01:50+13:00
FileAccessDate                  : 2020:11:01 07:01:50+13:00
FileCreateDate                  : 2020:11:01 07:01:50+13:00
ModifyDate                      : 2020:11:03 13:38:09
DateTimeOriginal                : 2020:11:01 07:01:50
CreateDate                      : 2020:11:03 11:20:17
GPSTimeStamp                    : 18:01:50
GPSDateStamp                    : 2020:10:31
MetadataDate                    : 2020:11:03 13:38:09+13:00
HistoryWhen                     : 2020:11:03 11:20:17+13:00, 2020:11:03 13:38:09+13:00, 2020:11:03 13:38:09+13:00
GPSDateTime                     : 2020:10:31 18:01:50Z

Shoot 3>exiftool -s -time:all Q360_20201101_070150_000009.JPG
FileModifyDate                  : 2020:11:01 07:02:22+13:00
FileAccessDate                  : 2020:11:03 17:44:15+13:00
FileCreateDate                  : 2020:11:01 08:05:41+13:00
ModifyDate                      : 2020-11-01 07:02:21
DateTimeOriginal                : 2020-11-01 07:02:21
CreateDate                      : 2020-11-01 07:02:21
ProfileDateTime                 : 1998:02:09 06:49:00

Phil Harvey

Quote from: DeckG on November 03, 2020, 12:32:49 AM
I'm trying to set the DateTimeOriginal stamp on the first file to be the same as the original.

What do you mean by "the same as the original"?

Your command sets FileModifyDate and FileCreateDate from DateTimeOriginal, and is working as expected, but I don't think this is what you wanted to do.

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

StarGeek

As shown in your output, exiftool did exactly what you told it to.  You told it to process files in Edited\KDOutput\JPEG\ directory and the output for your example file shows that the File*Date tags are the same as the DateTimeOriginal tag.

Shoot 3>exiftool -s -time:all Edited\KDOutput\JPEG\Q360_20201101_070150_000009.JPG
FileModifyDate                  : 2020:11:01 07:01:50+13:00
FileAccessDate                  : 2020:11:01 07:01:50+13:00
FileCreateDate                  : 2020:11:01 07:01:50+13:00
...
DateTimeOriginal                : 2020:11:01 07:01:50
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

DeckG

Hi Phil,
Thanks for the quick reply.

The DateTimeOriginal is 2020-11-01 07:02:21 but the file is showing 2020:11:01 07:01:50, it's refusing to change to 07:02:21, am I using the right command?

DeckG

I need to copy the DateTimeOriginal from the master files to the coresponding files in the JPEG folder

Phil Harvey

Quote from: DeckG on November 03, 2020, 11:36:18 AM
I need to copy the DateTimeOriginal from the master files to the coresponding files in the JPEG folder

Well, why didn't you say so?  Here is the command:

exiftool -tagsfromfile SOURCEDIR/%f.%e -datetimeoriginal -ext jpg DESTINATIONDIR

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

DeckG

Thanks Phil, still learning how to code!