SwiftImageMetadata

1.0.0

A simple image file metadata extraction utility in Swift
bdh777psu/SwiftImageMetadata

What's New

2023-07-13T20:06:02Z

SwiftImageMetadata

A simple image file metadata extraction utility in Swift.

Description

This Swift Package was designed to be a simple utility tool to extract metadata from image files levraging Apple's 'Image I/O' Framework, which can "read and write most image file formats, and access an image’s metadata".

Installation

SwiftImageMetadata is available as a Swift Package. To install it, simply add the following line to your 'Package.swift' file:

.package(url: "https://github.com/bdh777psu/SwiftImageMetadata", branch: "main"),

...or drag the SwiftImageMetadata.swift file into your project.

Usage Example

import SwiftImageMetadata

let pathToFile = URL(filePath: "/path/file.heic")

let simUtil = SwiftImageMetadata()
let metadata = simUtil.readImageMetadata(fromURL: pathToFile, forMetadata: .gps)

print(metadata)

Available Metadata formats

.all //returns all available metadata
.exif
.gps
.makeApple
.tiff

Author

Diogo Lessa

License

SwiftImageMetadata is available under the MIT license.

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 17:21:51 GMT-0900 (Hawaii-Aleutian Daylight Time)