I cannot guarantee that this gets rid of any identifiable data, but it definitely yeets all identifiable metadata. Also consider threat model when taking pictures of Outside obviously, etc etc.
Here's the .pre-commit-config.yml for it. It keeps colour profiles because those are important and yeets everything else.
repos:
- repo: local
hooks:
- id: no-spicy-exif
name: Ban spicy exif data
description: Ensures that there is no sensitive exif data committed
language: system
entry: exiftool -all= --icc_profile:all -overwrite_original
exclude_types: ["svg"]
types: ["image"]