如何在 iOS 中从照片中获取图像 EXIF 元数据(ISO、光圈值、曝光度等)?
在早期版本的 iOS 中,我可以通过 PLCameraController
获取 EXIF 字典,
-(void)cameraController:(id)sender
tookPicture:(UIImage*)picture
withPreview:(UIImage*)preview
jpegData:(NSData*)rawData
imageProperties:(id)imageProperties
这在 iOS 4+ 中不再有效。
如何在 iOS 中获取 EXIF 元数据,例如 ISO 编号、F 编号等?
In earlier versions of iOS I was able get EXIF dictionary with PLCameraController
via
-(void)cameraController:(id)sender
tookPicture:(UIImage*)picture
withPreview:(UIImage*)preview
jpegData:(NSData*)rawData
imageProperties:(id)imageProperties
This no longer works in iOS 4+.
How can I get EXIF metadata in iOS such as ISO number, F-number etc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 iOS 4.1 开始,您可以获取使用
UIImagePickerControllerMediaMetadata
键拍摄的照片的图像元数据。如果您记录
[info description]
的输出,您可以看到所有可用的元数据 -As of iOS 4.1, you can get the image metadata for a photo that was taken using the
UIImagePickerControllerMediaMetadata
key.If you log the ouput of
[info description]
you can see all the metadata that is available --