Options (4)
-PbooleanPrint all metadata (Exif, IPTC, XMP) with interpreted values
Example:
exiv2 {{[-P|-Print]}} kt {{path/to/file}}-d, --deletebooleanDelete all metadata from an image
Example:
exiv2 {{[-d|--delete]}} a {{path/to/file}}-k, --keepbooleanDelete all metadata, preserving the file timestamp
Example:
exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}-r, --renamebooleanRename 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/filePrint all metadata (Exif, IPTC, XMP) with interpreted values
exiv2 [-P|-Print] kt path/to/filePrint all metadata with raw values
exiv2 [-P|-Print] kv path/to/fileDelete all metadata from an image
exiv2 [-d|--delete] a path/to/fileDelete all metadata, preserving the file timestamp
exiv2 [-d|--delete] a [-k|--keep] path/to/fileRename 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/filemade by @shridhargupta | data from tldr-pages