-
Install imagemagick with homebrew :
brew install imagemagick
-
Use mogrify to strip EXIF data and comments:
mogrify -strip ./image.jpg
-
Check for OSX wherefroms:
mdls ./image.jpg
-
If there are any, delete them; they are nasty:
xattr -c ./image.jpg
Last active
August 29, 2015 13:56
-
-
Save guyhughes/9225194 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env sh | |
echo "WARNING: This is a one way operation on a single file." | |
echo "WARNING: Errors will be printed to console." | |
echo "Enter image filename to be sanitized: " | |
read theimage | |
mogrify -strip "$theimage" | |
xattr -c "$theimage" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment