Skip to content

Instantly share code, notes, and snippets.

@andyli
Created July 1, 2023 12:37
Show Gist options
  • Save andyli/5511791dc8ea6bb49edc7783c9f2a26b to your computer and use it in GitHub Desktop.
Save andyli/5511791dc8ea6bb49edc7783c9f2a26b to your computer and use it in GitHub Desktop.
suffix="_nogps"
for f in "$@"
do
extension=${f##*.}
newfile="${f%.$extension}$suffix.$extension"
/usr/local/bin/exiftool -gps:all= -xmp:geotag= "$f" -o "$newfile"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment