Is there way to get metadata of the image file in

2020-07-24 05:27发布

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?

2条回答
甜甜的少女心
2楼-- · 2020-07-24 05:43

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.
查看更多
登录 后发表回答