ExifTool:如何一起使用 -@ 和 -tagsFromFile 参数?

ExifTool:如何一起使用 -@ 和 -tagsFromFile 参数?

我尝试同时使用 -@ 和 -tagsFromFile 参数来删除除特定标签之外的所有元数据,然后将这些特定标签复制到 IPTC 和 XMP 标头。

exif2all:

# Disable backup file
-overwrite_original_in_place

# Strip all headers
-all=

# Preserve these tags (not working)
-tagsFromFile @ -CreateDate -DateTimeOriginal -Artist -XP*

# Copy EXIF to IPTC
-EXIF:Artist > IPTC:By-line
-EXIF:XPTitle > IPTC:ObjectName
-EXIF:XPComment > IPTC:Caption-Abstract
-EXIF:XPSubject > IPTC:Keywords 
# How do I append EXIF:XPKeywords to IPTC:Keywords?
# -EXIF:XPKeywords > IPTC:Keywords
-EXIF:DateTimeOriginal > IPTC:DateCreated
-EXIF:DateTimeOriginal > IPTC:TimeCreated
-EXIF:CreateDate > IPTC:DigitalCreationDate
-EXIF:CreateDate > IPTC:DigitalCreationTime

# Copy EXIF to XMP
-EXIF:Artist > XMP-dc:Creator
-EXIF:XPTitle > XMP-dc:Title
-EXIF:XPComment > XMP-dc:Description
-EXIF:XPComment > XMP:ImageDescription
-EXIF:XPSubject > XMP-dc:Subject
# How do I append EXIF:XPKeywords to XMP-dc:Subject?
# -EXIF:XPKeywords > XMP-dc:Subject
-EXIF:DateTimeOriginal > XMP:CreateDate
-EXIF:DateTimeOriginal > XMP:DateTimeOriginal

ExifTool v9.63 将标签复制到 IPTC 和 XMP 标头,完全剥离 EXIF 标头而不进行任何排除,并输出以下错误:

> exiftool -@ exif2all *.jpg
Ignored superfluous tag name or invalid option: -tagsFromFile @ -CreateDate -DateTimeOriginal -Artist -XP*

如何一起使用 -@ 和 -tagsFromFile 参数?

相关内容