💾 Archived View for tommi.space › Exiftool.gmi captured on 2023-01-29 at 02:58:01. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
ExifTool is the most common and used software to handle file metadata, specifically image information.
exiftool -s -G filename.jpg
where:
exiftool -AllDates filename.jpg
Removing all metadata from all files in pwd
exiftool -all= ./* #filename.jpg
Rename all files in pwd, according to the time and time they were shot
exiftool '-FileName=CustomName%-c.%le' '-FileName<CreateDate' '-FileName<GPSDateTime' '-FileName<DateTimeOriginal' -d %Y.%m.%d-%H.%M.%S%%-lc.%%le -r ./*
where:
During the file renaming process, the leftmost values are overwritten by the rightmost ones. Therefore, if a file both has CreateDate and DateTimeOriginal, the latter will overwrite the former. This is so in order to prioritize most reliable date values, as discussed in this thread in the ExifTool forum.
See ExifTool Date/Time Shift Module.
ExifTool Date/Time Shift Module
exiftool "-AllDates+=6:11:26 21:20:0" ./* # years:months:days hours:minutes:seconds
exiftool -GPSLatitude=43.819027 -GPSLatitudeRef=43.819027 -GPSLongitude=7.774179 -GPSLongitudeRef=7.774179 -overwrite_original
Organize files in directories based on each image’s dimensions (resolution)
exiftool '-Directory<imagesize' ./*
Move files to folders based on year and month
exiftool '-Directory<CreateDate' '-Directory<GPSDateTime' '-Directory<DateTimeOriginal' ./%Y/%Y.%m -r ./*