Exiftool
·1 min
Check Exif data on an image:
~/Image-ExifTool-12.40/exiftool -a -G1 -s -time:all filename
The following command sorts by year, month, date and camera model name, in that order.
- Use
-o .
to move the data to some other directory. Without that, sorting happens in the directory specified at the end of the command (i.e..
below). - The
-Filename
pseudo tag helps you rename the files. (I haven’t done that myself though.)
~/Image-ExifTool-12.40/exiftool -r -P \
'-Directory<$filemodifydate/Others' \
'-Directory<$createdate/Others' \
'-Directory<$datetimeoriginal/Others' \
'-Directory<$filemodifydate/${model;}' \
'-Directory<$createdate/${model;}' \
'-Directory<$datetimeoriginal/${model;}' \
-d '%Y/%m-%B/%d' .
Resources:
- Here’s how to handle image duplicates.
- Official documentation for Exiftool.