exiv2

Image metadata manipulation tool.

TLDR

Print a summary of the image Exif metadata

$ exiv2 [path/to/file]
copy

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

$ exiv2 -P kt [path/to/file]
copy

Print all metadata with raw values

$ exiv2 -P kv [path/to/file]
copy

Delete all metadata from an image

$ exiv2 -d a [path/to/file]
copy

Delete all metadata, preserving the file timestamp

$ exiv2 -d a -k [path/to/file]
copy

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]
copy

Copied to clipboard
free 100$ digital ocean credit