Created
June 22, 2020 13:16
-
-
Save enkiusz/639634c0ff39fe8a9857e23f9e96bf7d to your computer and use it in GitHub Desktop.
Set this as a pre-commit hook to anonymize images in your repository
This file contains hidden or 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
#!/bin/sh | |
echo "Removing EXIF metadata" | |
if ! which exiv2 > /dev/null; then | |
echo "Please install the exiv2 tool" | |
exit 0 | |
fi | |
find . -iname '*.png' -or -iname '*.jpg' -print0 | xargs -0 exiv2 -d a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment