exiftool
see also
- MiniExiftool - a ruby wrapper for the ExifTool command-line
Usage
$ exiftool -Comment <image.jpg> # read comment
$ exiftool -Comment="my comment" <image.jpg # write commentStandard Metadata
-Title=”Golden Gate at Dawn”
-Description=”Golden Gate Bridge at sunrise with fog.”
-Comment==”missed boat”
-Label=”Approved”
Tags
$ exiftool \
-XMP-dc:Subject+="mountains" \
-XMP-dc:Subject+="fog" \
-XMP-lr:HierarchicalSubject+="Nature|Mountains" \
-XMP-lr:HierarchicalSubject+="Nature|Fog" \
image.jpg
# shortcuts
$ exiftool -Keywords="sunset, mountains, fog" image.jpgdigikam 📷
These information are visible in
- Metadata Sidebar / exiftool panel
- Caption may show different information
- press “More / Read Metadata from file to database” to sync them
Ruby 💎
require 'mini_exiftool'
photo = MiniExiftool.new("image.jpg")
photo.title = "Sunset at the beach"
photo.description = "Taken during summer vacation"
photo.artist = "Jane Doe"
# Writing custom or uncommon tags
photo.keywords = ["travel", "sunset", "beach"]
photo.save
Written on December 17, 2025, Last update on December 21, 2025
image
photo
metadata
jpeg
ruby