安卓:从图像中获取所有现有的EXIF数据 [英] Android: Getting all existing exif data from an image
本文介绍了安卓:从图像中获取所有现有的EXIF数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这是可能通过指定ExifInterface字符串变量来获得特定的EXIF数据。例如,获取图像的日期会是这样的:
I know it's possible to get specific exif data by specifying the string tag in the ExifInterface. For example, getting the date of an image would be something like:
ExifInterface exif = new ExifInterface(pathToImage);
exif.getAttribute(ExifInterface.TAG_DATETIME);
有没有办法简单地让所有的非空可EXIF字符串,而无需手动编写的get code为他们每个人?
Is there a way to simply get all of the non-null available exif strings without having to manually write the get code for each of them?
推荐答案
我有同样的问题,并最终使用的元数据提取库:
I had the same 'problem' and ended up using the metadata-extractor library:
HTTP://$c$c.google.com/p/metadata -extractor /
在下面的链接第二节回答你的问题:
Section 2 in the following link answers your question:
HTTP://$c$c.google.com/ P /元数据提取/维基/ GettingStarted
这篇关于安卓:从图像中获取所有现有的EXIF数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文