exiftool使用

下载安装 exiftool

  1. exiftool 官网下载最新的 tar.gz 包;
  2. 解压下载的 tar.gz 包,只保留 exiftool 可执行文件和 lib 文件夹;

修改标签的语法

https://exiftool.org/#writing

1
2
3
4
exiftool -r '-FileName<CreationDate' -d "%Y%m%d/REC_%Y-%m-%d_%H-%M-%S%%-c_.%%e" ./*.MOV
exiftool -r '-FileName<CreationDate' -d "%Y%m%d/REC_%Y-%m-%d_%H-%M-%S%%-c_.%%e" ./*.m4a
exiftool -r '-FileName<DateTimeOriginal' -d "%Y%m%d/IMG_%Y-%m-%d_%H-%M-%S%%-c_.%%e" ./*.HEIC
exiftool -r '-FileName<DateTimeOriginal' -d "%Y%m%d/IMG_%Y-%m-%d_%H-%M-%S%%-c_.%%e" ./*.JPG
  • -TagName<AnOtherTagAnOtherTag标签的值写入-TagName
  • exiftool -artist=标签名称 photo.jpg 写入艺术家标签
  • -d设置日期类标签的格式

清除 exif 信息

  • exiftool -r -all= some_dir 递归删除目录中媒体文件所有元数据
  • exiftool -gps:all="" photo.jpg 删除媒体文件中分组为gps信息
  • exiftool -all="" --exif:all photo.jpg 删除EXIF以外的所有信息
  • exiftool -all="" --ICC_Profile:all photo.heic 删除ICC_Profile以外的所有信息

查看

  • exiftool -g some_file或者exiftool -G some_file以分组形式查看exif信息

  • exiftool -s some_file 查看所有标签名称以及对应的值


exiftool使用
https://dnacore.github.io/post/4fe88244-29f9-4734-8710-7a477daf274e.html
作者
DNACore
发布于
2022年2月17日
更新于
2023年11月17日
许可协议