exif - 自定义 Exif 标签

标签 exif

我正在使用 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 = none

UserComment
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/

相关文章:

javascript - 如何在 Javascript 中从图像文件数据读取地理位置

Android 为图像文件创建自定义 Exif 属性

java - 在 EXIF 数据中搜索结束标记

C 程序错误地读取文件

c++ - cr2 提取具有特定焦距的图像

image - 在 PowerShell 中提取 EXIF 数据的简便方法?

javascript - 将元数据 (Exif) 添加到 base64

perl - 如何使用 PerlMagick 提取 EXIF 数据?

python - 在python中获取文件详细信息

java - 如何从图像中获取 EXIF 或元数据?