For more information look at the man pages of the exiftool command. I have only scratched the surface of what this tool is capable of. If you want to strip off all meta-data from an image before sharing it: exiftool -all= image.png In order to just remove the geo-location data from an image: exiftool -geotag= image.png Now every image has the exact date and time it was taken. That command subtracts 720 hours (30 days) off the dates of each image file in the images directory. In this case I used the date calculating option and just executed: exiftool -AllDates-=720:00 -overwrite_original images 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). That meant that all the photos I had taken lately had dates that were off by exactly 30 days. 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Īs far as changing dates and times, there is another option of exiftool that lets you do time calculation.įor example, the other day I found out that my camera’s time was correct but the date was ahead by 30 days. 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. The “-overwrite_original” option is necessary if you want to change the meta-data of the original images. 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 Now you are ready to start changing the meta-data of the images.įor 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 Working with jpg Metadata Comments - Exiftool - BASH - Linux Command Line (video by Linux By Example) Useful one-line ExifTool commands (. In terminal execute: sudo apt-get install libimage-exiftool-perl You can also put different rules about what files and how you want to change them if you need to. It allows you to change individual files or whole bunch of them with one command. There is a very flexible and easy Linux tool that helps you change the EXIF meta-data of images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |