ExifTool - 如何从文件夹及其所有子文件夹内的所有可能文件中删除所有元数据?

ExifTool - How to remove all metadata from all files possible inside a folder and all its subfolders?

如何从文件夹及其子文件夹中的所有文件中删除所有元数据?

我已经尝试了几个命令但都没有成功。所有这些都绑定到特定的文件扩展名 and/or 没有遍历里面的所有子文件夹。

你会用
exiftool -all:all= -r /path/to/files/

此命令创建备份文件。添加 -overwrite_original 以禁止创建备份文件。

您不想使用通配符来限制文件选择(参见 Common Mistake #2). For that you would use the -ext (extension) option

Exiftool 不会处理任何不在可写文件类型列表中的文件(参见 ExifTool FAQ #16),因此将跳过 AVI 或 MKV 等文件。

不想对 RAW 文件类型(例如 NEF 或 CR2)使用此命令,因为这将删除渲染图像所需的数据。参见 ExifTool FAQ #8