How can I strip EXIF, GPS, and other metadata from photos in Linux?
Using a single command from the wonderful ImageMagick, you can strip all of that personal data from your photos before posting them to the web.
First, install ImageMagick:
sudo apt-get install imagemagick
Then simply run this command below.
Note: *.jpg will strip and entire directory of jpg images. You can also just specify one image if desired.
mogrify -strip *.jpg