exiv2
Exiv2 is a C++ library and command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata of images in various formats.
Description
Exiv2 is designed for EXIF/IPTC/XMP metadata manipulation in images. The command line utility allows printing metadata in different formats, setting, adding, or deleting metadata, adjusting Exif timestamps, renaming files based on timestamps, extracting or inserting metadata and thumbnails, and fixing Exif ISO settings for Canon and Nikon cameras.
Use cases include forensic analysis of image metadata, batch processing of photo libraries for timestamp corrections or metadata extraction, and embedding or removing metadata for privacy or organization. It supports various image formats and can handle URLs or wildcards for files.
The library component offers an API for developers, with features like Makernote support, conversions between metadata formats, and safe handling of IPTC data to avoid corruption.
How It Works
Exiv2 reads and writes Exif, IPTC, and XMP metadata directly from image files using a C++ library. It interprets tags, supports Makernote tags with a sophisticated write algorithm to prevent corruption, extracts previews from RAW images and thumbnails from Exif, and performs conversions between Exif/IPTC and XMP formats. Command line actions like print, adjust, delete, and insert operate on specified metadata types with options for filtering, verbosity, and log levels.
Installation
sudo apt install exiv2Flags
Examples
exiv2 -pe image.dng *.jp2exiv2 -g date/i https://clanmills.com/Stonehenge.jpgexiv2 -M"set Xmp.dc.subject XmpBag Sky" image.tiffexiv2 pr image.jpgexiv2 ad -a image.jpgexiv2 rm -d all image.jpgexiv2 in image.exv image.jpg