Removing EXIF Metadata with ImageMagick
If you need to strip the EXIF metadata from images, use ImageMagick’s mogrify command. To install ImageMagick on ubuntu using apt type the following command in a terminal
sudo apt-get install ImageMagick
After ImageMagick is installed, you will have /usr/bin/mogrify available. The mogrify command can be used to strip Exif data from images.
mogrify -strip imagename.jpg