UIImagePickerController 不提供地理标记数据
方法中返回给我的图像
当我使用 UIImagePickerController 从相机胶卷或照片库中选择照片时,在“didFinishPickingImage”
不包含纬度和经度的 exif 数据。 我知道标题在那里,因为它们在导入 iPhoto 时显示,而且如果我从相机胶卷上传图像,它们还包含用于位置的 exif 标题。 有没有办法让 UIImagePickerController 也传递该信息?
When I use UIImagePickerController to select a photo, either from the Camera Roll or the Photo Library, the image that gets returned to me in the method
'didFinishPickingImage'
does not contain the exif data for latitude and longitude. I know that the headers are there, because they show up when imported into iPhoto, also if I upload images from the Camera Roll, they also contain the exif headers for location. Is there a way to get UIImagePickerController to deliver that information as well?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以对从
UIImagePickerController
收到的图像进行地理标记,请在此处查看我的答案:UIImagePickerController 并从现有照片中提取 EXIF 数据
It's up to you to geotag the image received from the
UIImagePickerController
, see my answer here :UIImagePickerController and extracting EXIF data from existing photos
好像没有。 UIImagePickerController 错误地去除了位置标签,但它们存在于文件中(您不允许访问该文件,因为它位于沙箱之外)。
请参阅此处关于 Apple 的讨论:链接文本
以及关于 Flicker 的评论此处:链接文本
It seems that there is not. The UIImagePickerController incorrectly strips off the location tags, but they are there on the file (which you are not allowed to access as it's outside your sandbox).
See the discussion on Apple here: link text
And the comments on Flicker here: link text