Skip to content

Instantly share code, notes, and snippets.

@nramsbottom
Created August 7, 2016 00:48
Show Gist options
  • Select an option

  • Save nramsbottom/624c01565ad6d0a49f935c79a33f9b3f to your computer and use it in GitHub Desktop.

Select an option

Save nramsbottom/624c01565ad6d0a49f935c79a33f9b3f to your computer and use it in GitHub Desktop.
Remove JPEG EXIF data
#!/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