That's good, but you aren't interested in the hours, minutes and seconds, so we can change the way exiftool considers dates to only look at the year, month and day with -d: exiftool -d %F -p '$Filename, $FileModifyDate, $DateTimeOriginal' image.jpg I guess you would have to use double quotes on Windows because it doesn't generally understand single quotes. Note you MUST use single quotes on macOS/Linux else the bash shell tries to expand the variable and it expands to nothing - unless you happen to have a bash variable called DateTimeOriginal. Ok, I think you want FileModifyDate and DateTimeOriginal, so let's check we can print them: exiftool -p '$Filename, $FileModifyDate, $DateTimeOriginal' image.jpg That looks useful, but internally exiftool uses Perl variables for the fields/tags, and I would like to get the variable names so I can compare them later, so I added -s: exiftool -s image.jpg | grep -i dateįileModifyDate : 2021:01:14 10:51:38+00:00įileAccessDate : 2021:01:14 10:51:40+00:00įileInodeChangeDate : 2021:01:14 10:51:38+00:00 so I can remember what I did in future :-).you can adapt it if it's not exactly what you meant, and.I am no expert with exiftool but think I have got something that is 90% of what you want.
0 Comments
Leave a Reply. |