Title says everything.
exiftool is a command line tool that allows you to change and manipulate the EXIF metadata of images. On macOS you can easily install it with: detox is a utility designed to clean up filenames.
Almost all digital cameras record and store various camera settings, scene information, date/time the photo was taken etc as Exchangeable Image File Format (EXIF) data. This metadata is stored within the image file and won’t get lost or overwritten when copying or transferring your photos to other computers.
If you have a correct EXIF date, you can easily rename all files based on the EXIF date of the file: $ exiftool '-FileName<DateTimeOriginal' -d %Y%m%d_%H%M%S%%-c.%%e .
Set the file modification date based on EXIF date. With the previous action, the EXIF date might be correct, but now the modified date is set to the date the tool was invoked. To fix the modified date of the file that was destroyed with the previous action, run: $ exiftool -v "-DateTimeOriginal>FileModifyDate".
I'm using MiniExiftool, a ruby interface to Perl's Exiftool.
Usage:
exif = MiniExiftool.new(file_path)
exif.date_time_original = Time.now
exif["captionextract"] = "This is my new caption"
exif.save
There is also: https://github.com/janfri/multi_exiftool
Have you tried exifr?
EXIF Reader is a module to read EXIF from JPEG and TIFF images.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With