There is a very flexible and easy Linux tool that helps you change the EXIF meta-data of images. It allows you to change individual files or whole bunch of them with one command. You can also put different rules about what files and how you want to change them if you need to.
The program is called exiftool. So let’s install it first.
In terminal execute:
sudo apt-get install libimage-exiftool-perl
Now you are ready to start changing the meta-data of the images.
For example, if I wanted to change all the dates and times (DateTimeOriginal, CreateDate and ModifyDate) of the IMG_01.jpg file to the 8th of August 2010 at 3:35:33 PM I would do:
exiftool -AllDates='2010:08:08 15:35:33' -overwrite_original IMG_01.jpg
If I wanted to change the dates on all the files in the “images” directory, I would do:
exiftool -AllDates='2010:08:08 15:35:33' -overwrite_original images
The “-overwrite_original” option is necessary if you want to change the meta-data of the original images. If you omit that option, then exiftool will back-up the originals by making a copy of them and adding “_original” to the end of the file names.
If you want to change the dates to all the files in the “images” directory that were taken by a Cannon camera (and not touch the rest) I would do:
exiftool -AllDates='2010:08:08 15:35:33' -if '$make eq "Canon"' -overwrite_original images
As far as changing dates and times, there is another option of exiftool that lets you do time calculation.
For example, the other day I found out that my camera’s time was correct but the date was ahead by 30 days. That meant that all the photos I had taken lately had dates that were off by exactly 30 days. If I were to use the above examples I could set the dates individually (which would be a long and tedious process) or set all the images to the same date and time (which would be wrong). In this case I used the date calculating option and just executed:
exiftool -AllDates-=720:00 -overwrite_original images
That command subtracts 720 hours (30 days) off the dates of each image file in the images directory. Now every image has the exact date and time it was taken.
In order to just remove the geo-location data from an image:
exiftool -geotag= image.png
If you want to strip off all meta-data from an image before sharing it:
exiftool -all= image.png
I have only scratched the surface of what this tool is capable of. For more information look at the man pages of the exiftool command.