print common metadata
exiftool -common image.jpg
Or store it in a file for processing:
exiftool -common -csv image.jpg > out.csv
original capture time for raw photos
exiftool -DateTimeOriginal -csv *.RAF
set file modification time to capture time
exiftool '-FileModifyDate<DateTimeOriginal' dir
move pictures from DIR to organized tree by date
Putting the FileModifyDate tag before DateTimeOriginal causes it to "fallback"
to FileModifyDate if DateTimeOriginal is missing.
exiftool '-Directory<FileModifyDate' '-Directory<DateTimeOriginal' -d %Y/%m/%d DIR
Copy instead of move:
exiftool -o . '-Directory<FileModifyDate' '-Directory<DateTimeOriginal' -d %Y/%m/%d DIR
rename the files based on their date
exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" DIR
set dates from filename
https://exiftool.org/faq.html#Q5
https://exiftool.org/forum/index.php?topic=8456.0
Exiftool is briliant at detecting if a filename contains a date so most of the
time this should work:
exiftool '-alldates<filename'
Basically, if the date occurs (with any seperators/prefix/sufix) in this loose
format YYYYmmddHHMMSS
it should work.
If you want to set the minutes and seconds to 00:00 you can use this:
exiftool "-datetimeoriginal<${filename;$_=substr($_,0,13)} 00:00" DIR
strip metadata
Some image files are not fully supported and thus ALL metadata cannot be
removed, for more common types it does a good job.
exiftool -all= image.jpeg
list all pictures with a certain tag
This lists all pictures taken with a Fuji camera.
exiftool -Make -q -p '$directory/$filename' -r -if '$Make =~ /FUJIFILM/' dir