写任意元数据EXIF Android中 [英] Writing arbitrary metadata to EXIF in Android

查看:253
本文介绍了写任意元数据EXIF Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题发源于此:<一href=\"http://stackoverflow.com/questions/3245811/writing-exif-metadata-to-images-in-android/3246501?noredirect=1#comment22637008_3246501\">Writing EXIF元数据在Android中图像。

This question originated here: Writing EXIF metadata to images in Android .

我们可以使用EXIF写任意元数据,即除了那些在 ExifInterface文档(经度,纬度,闪存等)。如果不是,有什么能写任意元数据,以图像文件的preferred方法?

Can we use EXIF to write arbitrary metadata, i.e. other than those specified in the ExifInterface documentation (like latitude, longitude, flash etc). If not, what could be a preferred method of writing arbitrary metadata to image files?

推荐答案

该ExifInterface只有非常有限的实施EXIF标准的,不会让你比读/记录的那些规定的其他/写标签。在所选择的答案<一个href=\"http://stackoverflow.com/questions/12944123/reading-android-jpeg-exif-metadata-from-picture-callback\">this交中描述的另一种方法。

The ExifInterface is only a very limited implementation of the EXIF standard and will not allow you to read/write tags other than the ones documented/defined. In the chosen answer of this post an alternative method is described.

任意数据可以被写入到下列标记之一

Arbitrary data could be written to one of the following tags

Tag-hex     Tag-dec IFD     Key                             Type    
0x010e      270     Image   Exif.Image.ImageDescription     Ascii
0x9286      37510   Photo   Exif.Photo.UserComment          Comment

由此UserComment在具有关于使用的字符集较少限制

whereby UserComment has less restrictions regarding the character set used

这篇关于写任意元数据EXIF Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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