如何从jpeg中获取EXIF数据? [英] How to get EXIF data from my jpegs?

查看:98
本文介绍了如何从jpeg中获取EXIF数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将日期和名称链接到捆绑包中包含的某些jpeg,或者可能要从我自己的服务器下载到Documents文件夹.有没有一种方法可以轻松提取EXIF数据?

I have to link a date and a name to some jpegs that I am including in my bundle, or possibly downloading from my own server to the Documents folder. Is there a way to extract EXIF data easily?

如果是这样,那么我将使用EXIF来存储此信息.如果没有,那么我将不得不创建一个数据库或平面文件,将我的额外数据映射到图像文件.

If so, then I will use EXIF to store this info. If not, then I will have to create a database or flat file that maps my extra data to the image file.

请记住,这些不是iPhone拍摄的照片,而是通过UIImagePicker或从沙箱外部提供的照片.这些是我随附在应用程序中的照片,也可以是我自己下载到Docs文件夹中的照片.这里的重点是轻松:

Keep in mind, these are not photos the iPhone has taken and is providing via UIImagePicker or from outside the sandbox. These are photos that I am including with the app or downloadig to the Docs folder myself. The important point here is ease:

更容易

  • 从我的图像文件中读取EXIF文件
  • 还有另一个文件可以跟踪 图像文件和相关文件 数据(可以是sqlite)
  • read EXIF file from my image files
  • have another file that keeps track of the image file and the associated data (could be sqlite)

谢谢!

推荐答案

您可以尝试使用 iphone-exif工具包提取数据.但是,它是经过许可的GPL,如果您的应用是商业应用,则需要协商许可协议.如果那不可行,那么您可能要走外部元数据路线.

You can try using iphone-exif toolkit to extract the data. However, it's licensed GPL and if your app is commercial you'll need to negotiate a license deal. If that's not viable then you may want to go the external meta-data route.

这篇关于如何从jpeg中获取EXIF数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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