将值从一个 XMP 标签复制到另一个 XMP 标签

Copy values from one XMP tag to another XMP tag

我有很多带有一些元数据的图像 (JPG)。 我对这三个标签感兴趣,例如来自其中一张图片:

[XMP] FlightPitchDegree : 0.734793
[XMP] FlightRollDegree : -1.024403
[XMP] FlightYawDegree : 192.286436

我需要将每个图像的这些值复制到下一个标签:

Xmp.Camera.Pitch Xmp.Camera.Roll Xmp.Camera.Yaw

主要用于标签编辑,我使用的是 ExifTool,但我找不到用于在一个文件内的标签之间复制值的命令。 如果有任何建议,我将不胜感激。

最好的, 安德烈

要从一个标签复制到另一个标签,您可以使用 -TagsFromFile option 的重定向功能。基本上就是
exiftool "-TARGETTAG<SOURCETAG" file.xmp

你有 SourceTags 的名称 (FlightPitchDegree/FlightRollDegree/FlightYawDegree),你只需要弄清楚目标标签的 exiftool 名称。我可以在 DJI Tags page, but those are not XMP tags. The only other place I can find tags with similar names are part of the XMP-Camera group, which are not built into exiftool and you would have to download the pix4d.config file and use the -Config option 上找到 CameraPitch/CameraYaw/CameraRoll 标签来包含这些定义。

exiftool -config /path/to/pix4d.config "-XMP:Pitch< FlightPitchDegree" "-XMP:Yaw<FlightYawDegree" "-XMP:Roll< FlightRollDegree" file.xmp

为了加载定义,-config 选项必须是命令中的第一个选项。