Is there way to get metadata of the image file in iOS? [duplicate]

 ̄綄美尐妖づ 提交于 2020-01-13 06:08:09

问题


Possible Duplicate:
Access metadata (exif tags) of image taken by UIImagePickerController - iOS/iPhone
How to get image metadata in ios

I have some image file in the iOS application local folder. How can i get it's metadata?


回答1:


You can use the ImageIO Framework like explained in QA1654:

To access the image properties you:

  1. create a CGImageSourceRef for your image.
  2. get a copy of the image properties dictionary by calling CGImageSourceCopyPropertiesAtIndex.
  3. access the values in the dictionary by calling CFDictionaryGetValue with the property key that you are interested in. The available keys are located in the CGImageProperties Reference.



回答2:


You can get its metadata with the ImageIO framework. http://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html



来源:https://stackoverflow.com/questions/14292413/is-there-way-to-get-metadata-of-the-image-file-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!