This post is all about how to delete sensitive metadata of images.
When publishing or sharing pictures you should always be cautious what else you reveal beside a simple photo. Some of the most worrisome metadata include time and GPS-coordinates wich you may not wish to share (more information on metadata-types here).
To avoid revealing such information you need a way to inspect and then manipulate the metadata of your images. We use the Linux packages imagemagick and exiv2 for those tasks.
You can inspect the metdata of your image using:
identify -verbose myImage.jpg
To delete all metadata of an image use:
exiv2 -d a myImage.jpg
For uploading a lot of pictures it might get handy to just batch delete metadata with
exiv2 -d a *.jpg
which erases metadata of all images in the current directory that end with .jpg.
Please use metadata deletion with caution, you might want to backup your original images to preserve the metadata inside your personal archive.