2020-06-22 04:11:09 +08:00
|
|
|
# exiv2
|
|
|
|
|
|
|
|
> Image metadata manipulation tool.
|
|
|
|
> More information: <https://www.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:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`exiv2 {{[-P|-Print]}} kt {{path/to/file}}`
|
2020-06-22 04:11:09 +08:00
|
|
|
|
|
|
|
- Print all metadata with raw values:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`exiv2 {{[-P|-Print]}} kv {{path/to/file}}`
|
2020-06-22 04:11:09 +08:00
|
|
|
|
|
|
|
- Delete all metadata from an image:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`exiv2 {{[-d|--delete]}} a {{path/to/file}}`
|
2020-06-22 04:11:09 +08:00
|
|
|
|
|
|
|
- Delete all metadata, preserving the file timestamp:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`exiv2 {{[-d|--delete]}} a {{[-k|--keep]}} {{path/to/file}}`
|
2020-06-22 04:11:09 +08:00
|
|
|
|
|
|
|
- Rename the file, prepending the date and time from metadata (not from the file timestamp):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`exiv2 {{[-r|--rename]}} {{'%Y%m%d_%H%M%S_:basename:'}} {{path/to/file}}`
|