Skip to content

Instantly share code, notes, and snippets.

@ericdke
Created October 10, 2016 13:09
Show Gist options
  • Save ericdke/023c890ad8a519093a395c261714c785 to your computer and use it in GitHub Desktop.
Save ericdke/023c890ad8a519093a395c261714c785 to your computer and use it in GitHub Desktop.
if let imageSource = CGImageSourceCreateWithURL(fileURL as CFURL, nil) {
let imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, nil)
if let dict = imageProperties as? [String: Any] {
print(dict)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment