大网数据广告活动
Linux 与通用命令

exiftool · 常用命令示例

· 52CE 我爱测

Read and write meta information in files. > More information: <https://exiftool.org/exiftool_pod.html>.

exiftool

Read and write meta information in files. More information: https://exiftool.org/exiftool_pod.html.

  • Print the EXIF metadata for a given file:

exiftool

  • Remove all EXIF metadata from the given files:

exiftool -All=

  • Remove GPS EXIF metadata from given image files:

exiftool "-gps*="

  • Remove all EXIF metadata from the given image files, then re-add metadata for color and orientation:

exiftool -All= -tagsfromfile @ -colorspacetags -orientation

  • Move the date at which all photos in a directory were taken 1 hour forward:

exiftool "-AllDates+=0:0:0 1:0:0"

  • Move the date at which all JPEG photos in the current directory were taken 1 day and 2 hours backward:

exiftool "-AllDates-=0:0:1 2:0:0" jpg

  • Only change the DateTimeOriginal field subtracting 1.5 hours, without keeping backups:

exiftool -DateTimeOriginal-=1.5 -overwrite_original

  • Recursively rename all JPEG photos in a directory based on the DateTimeOriginal field:

exiftool '-filename<DateTimeOriginal' %Y-%m-%d_%H-%M-%S%%lc.%%e jpg

来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
tldr-pages contributors
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。