自定义Exif标签 [英] Custom Exif Tags

查看:139
本文介绍了自定义Exif标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 exiv2 来操纵jpeg文件中的元数据.我需要将与图像处理有关的更多信息写入元数据.是否可以创建非标准的自定义Exif标记?

I am using exiv2 to manipulate metadata in a jpeg file. I need to write more information related to image processing into the metadata. Is is possible to create Custom Exif tags other than the standard ones?

推荐答案

来自 http://www .exif.org/Exif2-2.PDF :

D.与用户信息有关的标签

MakerNote
的标签 Exif编写器的制造商可以记录任何所需的信息.这 内容由制造商决定,但不应使用此标签
标签= 37500(927C.H)
类型= 未定义
计数=任何
默认=无

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

标记,供Exif用户在 除ImageDescription中的图像之外的图像,且不包含字符 ImageDescription标记的代码限制.
标签= 37510(9286.H)
类型=未定义
计数=任何
默认=无

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

exiv2 supports MakerNote tags: 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

If you don't want to do this, you can use UserComment: http://www.exiv2.org/doc/exifcomment_8cpp-example.html

这篇关于自定义Exif标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆