Created
August 7, 2016 00:48
-
-
Save nramsbottom/624c01565ad6d0a49f935c79a33f9b3f to your computer and use it in GitHub Desktop.
Remove JPEG EXIF data
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/bash | |
| # make sure that the required package is installed | |
| if [ $(dpkg-query -W -f='${Status}' libimage-exiftool-perl 2>/dev/null | grep -c "ok installed") -eq 0 ]; | |
| then | |
| sudo apt-get install -y libimage-exiftool-perl | |
| fi | |
| # remove all metadata from JPEG files in the current directory | |
| exiftool -all= *.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment