exiv2

Image metadata manipulation tool. More information: <https://www.exiv2.org/manpage.html>.

Install

All systems
curl cmd.cat/exiv2.sh
Debian Debian
apt-get install exiv2
Ubuntu
apt-get install exiv2
Alpine
apk add exiv2
Arch Arch Linux
pacman -S exiv2
image/svg+xml Kali Linux
apt-get install exiv2
CentOS
yum install exiv2
Fedora
dnf install exiv2
Windows (WSL2)
sudo apt-get update sudo apt-get install exiv2
OS X
brew install exiv2
Raspbian
apt-get install exiv2
Docker
docker run cmd.cat/exiv2 exiv2 powered by Commando

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:
    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

© tl;dr; authors and contributors