exiftool Recipes
Copy file creation datetime to original datetime
exiftool "-EXIF:DateTimeOriginal<CreateDate" <filenames>
Geotag jpg files based on their creation date and a GPS track file
exiftool -geotag <path to track file> '-geotime<${createdate}-00:00' <filenames>
Extract EXIF thumbnail
exiftool -b -ThumbnailImage <path to image file> > <path to thumbnail>
Shift dates and times
exiftool -DateTimeOriginal+='<time delta>' <filenames>
The time delta needs to have the format: years:months:days hours:minutes:seconds
. The part before the space can be omitted if you are only shifting less than 24 hours.
Copy GPS information from JPG to DNG
exiftool -overwrite_original -tagsfromfile %d%f.jpg -gps:all -r -ext DNG .
Note: The source and destination filenames need to match.
Notes
exiftool
accepts file path and directory arguments as you would expect from any usual terminal tool, meaning that you can use bash globbing etc. It can also work recursively with the -r
flag. See the manual for more information.
The tool’s website includes a wealth of information and recipes.