aben20807 / blog-post-issues

https://aben20807.github.io/
MIT License
9 stars 2 forks source link

Use exiftool to group photos by their exif info, e.g., date #146

Open aben20807 opened 1 year ago

aben20807 commented 1 year ago

group by day:

exiftool -d %Y%m%d_ "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" ./

group by month:

exiftool -d %Y%m "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" ./

ref: https://exiftool.org/filename.html

aben20807 commented 1 year ago
exiftool -progress:%30b -m -a -d %Y%m%d_%H%M%S -if '$filename =~ /^DSC/' '-filename<${datetimeoriginal}_${filename}%-c' .

image