strips all exif metadata from images in a folder. gps coordinates are the main reason. keeps the icc profile and orientation tags so nothing looks wrong afterwards.

meant to run inside an alpine container with the image folder bind mounted. it installs exiftool with apk, counts how many files still have gps tags, wipes the metadata in place, then counts again so you can see it actually worked.

usage: pass the image dir as the first argument, defaults to /images. covers jpg jpeg png gif and webp. if the rewrite messes with file ownership on your setup, set CHOWN_TO at the top of the script to a uid:gid pair and it will chown everything back at the end.