是否可以使用PhoneGap检索现有iPhone图像的元数据(特别是地理定位数据)? [英] Is it possible to retrive an existing iPhone image's metadata (specifically geolocation data) using PhoneGap?

查看:111
本文介绍了是否可以使用PhoneGap检索现有iPhone图像的元数据(特别是地理定位数据)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PhoneGap 1.4.1创建iPhone应用程序。我可以成功执行以下任务:
$ b


  • 从相册或相机胶卷中检索图像
  • 用相机拍摄一张新照片

  • 检索设备的当前地理位置


我的理解是,在iPhone上拍摄的图像包含元数据。我相信元数据包含拍摄照片的地理位置。

我无法在PhoneGap API中找到关于图像元数据的任何内容。
我已经可以检索设备的当前位置,但我需要访问拍摄照片的坐标。



是否可以使用PhoneGap访问存储的iPhone照片地理位置?

解决方案

它目前不是PhoneGap的功能,但您仍然可以在Objective-C中执行此功能。



链接来帮助你做到这一点



UIImagePickerController并从现有照片中提取EXIF数据



向iOS图像添加元数据



< a href =http://code.google.com/p/iphone-exif/ =nofollow noreferrer>谷歌代码:iPhone EXIF



<那么如果你不能用PhoneGap来使用它,你可能会有创建一个PhoneGap插件


I'm using PhoneGap 1.4.1 to create an iPhone application. I can successfully perform the following tasks:

  • retrieve an image from a photo album or the camera roll
  • take a new image with the camera
  • retrieve the current geolocation of the device

It is my understanding that images taken on the iPhone contain metadata. I believe the metadata contains the geolocation of where the picture was taken.

I can't seem to find anything in the PhoneGap API about image metadata. I can already retrieve the device's current location, but I need to access the coordinates of where a picture was taken.

Is it possible to access the stored geolocation of an iPhone photo using PhoneGap?

解决方案

It is not a PhoneGap features at the moment but you can still do it in Objective-C.

Here are some link to help you do it

UIImagePickerController and extracting EXIF data from existing photos

Adding metadata to iOS images

Google code : iPhone EXIF

Then if you can't to use it with PhoneGap, you'll probably have to create a PhoneGap Plugin

这篇关于是否可以使用PhoneGap检索现有iPhone图像的元数据(特别是地理定位数据)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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