SimpleExif icon indicating copy to clipboard operation
SimpleExif copied to clipboard

How can I read the original exif data?

Open expkzb opened this issue 8 years ago • 1 comments

expkzb avatar Feb 24 '17 03:02 expkzb

let options = [kCGImageSourceShouldCache as String: kCFBooleanFalse] if let data = NSData(contentsOfURL: url), imgSrc = CGImageSourceCreateWithData(data, options) { let metadata = CGImageSourceCopyPropertiesAtIndex(imgSrc, 0, options) as Dictionary print(metadata) }

junestchick avatar Sep 20 '17 02:09 junestchick