From a6057cadb6b3a6aa23c0842de4f0c75c3c8cfb1d Mon Sep 17 00:00:00 2001 From: jn64 <23169302+jn64@users.noreply.github.com> Date: Mon, 22 Jun 2020 04:11:09 +0800 Subject: [PATCH] exiv2: add page (#4093) --- pages/common/exiv2.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/exiv2.md diff --git a/pages/common/exiv2.md b/pages/common/exiv2.md new file mode 100644 index 0000000000..6bf7be33c6 --- /dev/null +++ b/pages/common/exiv2.md @@ -0,0 +1,28 @@ +# exiv2 + +> Image metadata manipulation tool. +> More information: . + +- Print a summary of the image Exif metadata: + +`exiv2 {{path/to/file}}` + +- Print all metadata (Exif, IPTC, XMP) with interpreted values: + +`exiv2 -P kt {{path/to/file}}` + +- Print all metadata with raw values: + +`exiv2 -P kv {{path/to/file}}` + +- Delete all metadata from an image: + +`exiv2 -d a {{path/to/file}}` + +- Delete all metadata, preserving the file timestamp: + +`exiv2 -d a -k {{path/to/file}}` + +- Rename the file, prepending the date and time from metadata (not from the file timestamp): + +`exiv2 -r {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}`