写EXIF元数据在Android的图片 [英] Writing EXIF metadata to images in Android

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

问题描述

我要存储在图像中一些元数据。我的相机应用程序给了我一个位图,我存储在存储器(MediaStore)设备。除了这一点,我想一些标签添加到图像中它的元数据。我认为,EXIF是这样做的一个很好的方式。但我无法找到如何做到这一点有益的参考。

I want to store some metadata in images. My camera application gives me a bitmap, which I store in the storage (MediaStore) device. In addition to this, I want to add a few tags to the picture in its metadata. I think EXIF is a good way of doing this. But I couldn't find good references on how to do this.

如果有一些工具来实现这一任务的机器人编程,请让我知道。

If there are some tools to achieve this task in Android programming, please let me know.

感谢

推荐答案

好了,有人(离线)向我指出一个有用的资源。该 ExifInterface 看起来像什么,我在寻找。 的Andr​​oid-ER 有一个帖子,演示如何阅读EXIF元数据在Android中,我认为写作不应该有很大的不同。

Ok, Somebody (offline) pointed me to a useful resource. The ExifInterface looks like what I was searching for. Android-er has a post demonstrating how to read EXIF metadata in Android and I think writing should not be very different.

我不知道,但我们可以EXIF写任意元数据,IE浏览器。比在 ExifInterface文档(经度,纬度,闪存等)规定的其他。如果不是,有什么能写任意元数据,以图像文件的preferred方法?

I don't know, but can we EXIF to write arbitrary metadata, ie. 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?

感谢

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

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