примери с ExifTool

[ gps  gpx  photos  exiftool  software  ]

Примери с ExifTool (cheatsheets) - синхронизиране на метаданните на снимки с GPS координати (по време)

geotag

without offset

  • exiftool -api GeoMaxIntSecs=20 -api GeoMaxExtSecs=20 -overwrite_original -geotag /path/to/coordinates.gpx *

with offset (if they are taken in other timezone)

  • exiftool -api GeoMaxIntSecs=20 -api GeoMaxExtSecs=20 -overwrite_original -geotag /path/to/coordinates.gpx '-geotime<${datetimeoriginal}+08:00' *

change file modification date based on exif

  • exiftool "-FileModifyDate<XMP:DateTimeOriginal" "-FileModifyDate<EXIF:CreateDate" "-FileModifyDate<XMP:CreateDate" "-FileModifyDate<$IPTC:DateCreated $IPTC:TimeCreated" "-FileModifyDate<EXIF:DateTimeOriginal" folder/

copy exif data

  • exiftool -overwrite_original -tagsfromfile ../../YIVR_%-8.17f.JPG -all:all -preview:all= ./YIVR_*

rename based on exiftime

  • exiftool '-filename<${DateTimeOriginal}_${filename}' '-filename<${CreateDate}_${filename}' '-filename<${ContentCreateDate}_${filename}' -d %Y-%m-%d-%H-%M-%S%%-c .

fix exif date based on offset

  • exiftool -overwrite_original '-DateTimeOriginal+=4:9:21 04:45:12' *

debug/check why image is not geotagged (add -v2)

  • exiftool -v2 -api GeoMaxIntSecs=20 -api GeoMaxExtSecs=20 -overwrite_original -geotag /path/to/coordinates.gpx '-geotime<${datetimeoriginal}+08:00' *

create album in photos.google (regex)

  • .+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n.+/([^/]+\.[^/]+)"\n
  • "\1" | "\2" | "\3" | "\4" | "\5" | "\6" | "\7" | "\8" | "\9" | "\10" | "\11" | "\12" | "\13" | "\14" | "\15" | "\16"\n\n\n
  • .+/([^/]+\.[^/]+)"\n
  • "\1" | \n
Written on March 20, 2019