HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

exiv2 — Image metadata manipulation tool. More information: <https://exiv2.org/manpage.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
exiv2commandmetadatacliimagetoolmanipulationmore

Problem

How to use the exiv2 command: Image metadata manipulation tool. More information: <https://exiv2.org/manpage.html>.

Solution

exiv2 — Image metadata manipulation tool. More information: <https://exiv2.org/manpage.html>.

Print a summary of the image Exif metadata:
exiv2 {{path/to/file}}


Print all metadata (Exif, IPTC, XMP) with interpreted values:
exiv2 {{[-P|-Print]}} kt {{path/to/file}}


Print all metadata with raw values:
exiv2 {{[-P|-Print]}} kv {{path/to/file}}


Delete all metadata from an image:
exiv2 {{[-d|--delete]}} a {{path/to/file}}


Delete all metadata, preserving the file timestamp:
exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}


Rename the file, prepending the date and time from metadata (not from the file timestamp):
exiv2 {{[-r|--rename]}} '{{%Y%m%d_%H%M%S_:basename:}}' {{path/to/file}}

Code Snippets

Print a summary of the image Exif metadata

exiv2 {{path/to/file}}

Print all metadata (Exif, IPTC, XMP) with interpreted values

exiv2 {{[-P|-Print]}} kt {{path/to/file}}

Print all metadata with raw values

exiv2 {{[-P|-Print]}} kv {{path/to/file}}

Delete all metadata from an image

exiv2 {{[-d|--delete]}} a {{path/to/file}}

Delete all metadata, preserving the file timestamp

exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}

Context

tldr-pages: common/exiv2

Revisions (0)

No revisions yet.