commands.sh

exiv2

all

Image metadata manipulation tool.

More info →

Options (4)

-Pboolean

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

Example: exiv2 {{[-P|-Print]}} kt {{path/to/file}}
-d, --deleteboolean

Delete all metadata from an image

Example: exiv2 {{[-d|--delete]}} a {{path/to/file}}
-k, --keepboolean

Delete all metadata, preserving the file timestamp

Example: exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}
-r, --renameboolean

Rename the file, prepending the date and time from metadata (not from the file timestamp)

Example: exiv2 {{[-r|--rename]}} '{{%Y%m%d_%H%M%S_:basename:}}' {{path/to/file}}

Examples (6)

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
made by @shridhargupta | data from tldr-pages