LinuxCommandLibrary

exiv2

image metadata reader and editor for Exif, IPTC, and XMP

TLDR

Show metadata of image

$ exiv2 [image.jpg]
copy
Print all Exif data
$ exiv2 -pa [image.jpg]
copy
Print IPTC data
$ exiv2 -pi [image.jpg]
copy
Print XMP data
$ exiv2 -px [image.jpg]
copy
Modify Exif data
$ exiv2 -M "set Exif.Photo.UserComment [text]" [image.jpg]
copy
Delete all metadata
$ exiv2 -da [image.jpg]
copy
Rename by date
$ exiv2 -r "%Y%m%d_%H%M%S" [*.jpg]
copy

SYNOPSIS

exiv2 [options] [actions] files...

DESCRIPTION

exiv2 reads, writes, and manipulates image metadata including Exif, IPTC, and XMP. It supports JPEG, TIFF, PNG, and many other image formats.
The tool provides detailed access to camera settings, GPS coordinates, timestamps, and descriptive metadata. Batch operations can modify metadata across multiple files.
exiv2 is useful for organizing photos, removing sensitive metadata, and forensic analysis of image files.

PARAMETERS

FILES

Image files to process.
-pa
Print all Exif tags.
-pi
Print IPTC tags.
-px
Print XMP tags.
-M CMD
Modify metadata.
-da
Delete all metadata.
-r FORMAT
Rename files by timestamp.
-e FORMAT
Extract thumbnail.
--help
Display help information.

CAVEATS

Metadata modifications are permanent. Some formats have limited metadata support. GPS data may reveal location. Backup before bulk operations.

HISTORY

exiv2 is an open-source project providing a library and command-line tool for Exif and other metadata handling, used by many image applications.

SEE ALSO

exiftool(1), identify(1), jhead(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community