Find Photos with no EXIF DateTimeOriginal

Started by Megabyte, March 21, 2024, 12:31:08 PM

Previous topic - Next topic

Megabyte

I have searched and tried things but no lock so far!
I use Directory Opus and have managed (with a bit of help) to use several ExifTool commands in Directory Opus.
I am trying to figure out a command to find photos without an EXIF DateTimeOriginal - and if that's not possible, to find photos with an EXIF DateTimeOriginal before or after a specific date.
I hope someone can help.

Phil Harvey

exiftool -filename -if "not $datetimeoriginal" DIR

- 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

Quote from: Megabyte on March 21, 2024, 12:31:08 PMto find photos with an EXIF DateTimeOriginal before or after a specific date.

To do this part, you would use something like this to find dates after January 1, 2023
exiftool -if "$datetimeoriginal gt '2023:01:01'"
Or for dates before, change gt to lt

If you are using Mac/Linux, read the .sig on Phil's post.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).