This is a Swift framework providing Exif.
// from resource, type
let exif = Exif(forResource: "cat", ofType: "jpg")
// from ciimage
let ciimage = CIImage()
let exif = Exif(ciimage: ciimage)
// from resource path
let url = URL(fileURLWithPath: pathString)
let exif = Exif(contentsOf: url)let exif = Exif(forResource: "cat", ofType: "jpg")
// all properties
exif.properties.forEach { (key, value) in
print(key, value)
}
// each property
exif.aperture
exif.fNumber // exif has 31 properties- Swift 4.1 / Xcode 9.3
- iOS 9.0 or later
- Add
github "kichikuchi/Exif"to your Cartfile. - Run
carthage update.
Exif is released under the MIT License.