by Matt Cutts
If you want to post some JPEG pictures but you’re worried that they might have metadata like location embedded in them, here’s how to strip that data out.
First, install exiftool using this command:
sudo apt-get install libimage-exiftool-perl
Then, go into the directory with the JPEG files. If you want to remove metadata from every file in the directory, use
exiftool -all= *.jpg
The exiftool will make copies, so if you had a file called image.jpg, when you’re done you’ll have image.jpg with all the metadata stripped plus a file called image.jpg_original which will still have the metadata.