How to get image metadata in ios

后端 未结 9 1742
独厮守ぢ
独厮守ぢ 2020-11-29 06:18

I want to display image metadata using ios. Meta data like Aperture, Shutterspeed, Exposure Compensation, ISO, Lens Focal Length, etc. So please help me if anybody has idea

9条回答
  •  长情又很酷
    2020-11-29 06:44

    CGImageSourceRef source = CGImageSourceCreateWithURL( (CFURLRef) aUrl, NULL);
    CGImageSourceRef source = CGImageSourceCreateWithData( (CFDataRef) theData, NULL);
    NSDictionary* metadata = (NSDictionary *)CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(source,0,NULL));
    CFRelease(source);
    

    Check the dictionary contents here.

提交回复
热议问题