← 返回命令列表

Linux command

exiv2 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show metadata

exiv2 [image.jpg]

Print all Exif

exiv2 -pa [image.jpg]

Print IPTC data

exiv2 -pi [image.jpg]

Print XMP data

exiv2 -px [image.jpg]

Modify Exif

exiv2 -M "set Exif.Photo.UserComment [text]" [image.jpg]

Delete all metadata

exiv2 -da [image.jpg]

Rename by date

exiv2 -r "%Y%m%d_%H%M%S" [*.jpg]

说明

exiv2 reads, writes, and manipulates image metadata including Exif, IPTC, and XMP. It supports JPEG, TIFF, PNG, and many other image formats. The tool provides detailed access to camera settings, GPS coordinates, timestamps, and descriptive metadata. Batch operations can modify metadata across multiple files. exiv2 is useful for organizing photos, removing sensitive metadata, and forensic analysis of image files.

参数

-pa
Print all Exif tags.
-pi
Print IPTC tags.
-px
Print XMP tags.
-M _CMD_
Modify metadata.
-da
Delete all metadata.
-r _FORMAT_
Rename files by timestamp.
-e _FORMAT_
Extract thumbnail.
--help
Display help information.

FAQ

What is the exiv2 command used for?

exiv2 reads, writes, and manipulates image metadata including Exif, IPTC, and XMP. It supports JPEG, TIFF, PNG, and many other image formats. The tool provides detailed access to camera settings, GPS coordinates, timestamps, and descriptive metadata. Batch operations can modify metadata across multiple files. exiv2 is useful for organizing photos, removing sensitive metadata, and forensic analysis of image files.

How do I run a basic exiv2 example?

Run `exiv2 [image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -pa do in exiv2?

Print all Exif tags.