我正在使用 exiv2操作 jpeg 文件中的元数据。我需要将更多与图像处理相关的信息写入元数据中。除了标准标签之外,是否可以创建自定义 Exif 标签?
最佳答案
来自 http://www.exif.org/Exif2-2.PDF :
D. Tags Relating to User Information
MakerNote
A tag for manufacturers of Exif writers to record any desired information. The contents are up to the manufacturer, but this tag should not be used for any other than its intended purpose.
Tag = 37500 (927C.H)
Type = UNDEFINED
Count = Any
Default = noneUserComment
A tag for Exif users to write keywords or comments on the image besides those in ImageDescription, and without the character code limitations of the ImageDescription tag.
Tag = 37510 (9286.H)
Type = UNDEFINED
Count = Any
Default = none
exiv2 支持
MakerNote
标签: http://dev.exiv2.org/projects/exiv2/wiki/How_to_add_support_for_a_new_makernote如果您不想这样做,可以使用
UserComment
:http://www.exiv2.org/doc/exifcomment_8cpp-example.html
关于exif - 自定义 Exif 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10833928/