Skip to content

Instantly share code, notes, and snippets.

@sztectus
Last active November 13, 2023 12:34
Show Gist options
  • Save sztectus/12f9bdb2c5a66b0f5d7be12601fd9554 to your computer and use it in GitHub Desktop.
Save sztectus/12f9bdb2c5a66b0f5d7be12601fd9554 to your computer and use it in GitHub Desktop.
Exiftool for Drone Mapping
# Find all photos with GPS, place in GPS/ folder
exiftool -if 'not ($gpslatitude eq "0.000000 N")' -c "%.6f" -directory=GPS .
# Find all photos without GPS, move to WithoutGPS/ folder
exiftool -if '($gpslatitude eq "0.000000 N")' -c "%.6f" -directory=WithoutGPS .
# Find all photos with gimbal pitch > -15 degrees, move to ExcludedPhotos/
exiftool -if 'not ($gimbalpitchdegree ge "-15.00")' -c "%.2f" -directory=ExcludedPhotos .
# Pefix all jpg files with string
# or use MacOS Finder's batch rename feature
for filename in *.jpg; do mv "$filename" "prefix_${filename}"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment