Last active
November 13, 2023 12:34
-
-
Save sztectus/12f9bdb2c5a66b0f5d7be12601fd9554 to your computer and use it in GitHub Desktop.
Exiftool for Drone Mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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