![]()
EXIFTOOL LINUX COMMANDS INSTALLTo install ExifTool on CentOS or RHEL, first enable EPEL repository, and then run: $ sudo yum install perl-Image-ExifToolīelow is a list of file types and metadata currently supported by ExifTool ( r = read, w = write, c = create). To install ExifTool on Fedora: $ sudo yum install perl-Image-ExifTool To install ExifTool on Ubuntu, Debian or Linux Mint: $ sudo apt-get install libimage-exiftool-perl EXIFTOOL LINUX COMMANDS SOFTWARENo other library or software is required. Install ExifTool on LinuxĮxifTool requires Perl 5.004 or later. EXIFTOOL LINUX COMMANDS HOW TOIn this tutorial, I will describe how to view or edit metadata in PDF documents or digital pictures from the command line on Linux with ExifTool. EXIFTOOL LINUX COMMANDS WINDOWSIt is available on Linux, Windows or MacOS X. ![]() ExifTool is a powerful command-line utility that can read or write meta information in a file. Unless you want to strip off the metadata from images or documents for your privacy, there are various tools that allow you to selectively edit the metadata in digital photos or PDF documents. PDF documents also have its own set of metadata associated with them to identify author, title, date, etc. The metadata is automatically written by digital cameras, or manually added by photographers or photo editing software, to show various properties (e.g., creator, camera info, location) of a particular picture. Typical digital images or photos have a rich set of metadata embedded in them. For more information look at the man pages of the exiftool command.How to view or edit PDF/image metadata from command line on Linux 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 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 |