Filtering photos by day and month

Started by krzysiu, March 20, 2018, 05:24:48 PM

Previous topic - Next topic

krzysiu

Hello!

I'm trying to get all photos made this day, ignoring the year. I'm trying:

exiftool -d "%m:%d" -if "$datetimeoriginal==04:17" -filename -R .
And all results fails. But if I'll change condition to $datetimeoriginal==04 (just month), I get photos from March.

I'm using recent ExifTool on Windows. Probably I'm missing something obvious...

I'm nature photographer and I wanted to check out how nature looked this time of year, but other years :) Later I'll feed it to ImageMagick to automatically create collage.
"We would use teleporters and live on another planets, if only ExifTool would be present when I was researching cosmos and physics"
Albert Einstein

StarGeek

== is numeric comparison. Try -if "$datetimeoriginal eq '04:17'" instead.
* 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).

krzysiu

Somehow I thought I messed operators again, because it's not my first time. Thanks a lot, it works :)

Exactly two years ago:
"We would use teleporters and live on another planets, if only ExifTool would be present when I was researching cosmos and physics"
Albert Einstein

StarGeek

* 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).