exiftool

Home

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 comment

Standard 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.jpg

digikam 📷

These information are visible in

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