Merge pull request #4 from S2Ler/dependabot/bundler/cocoapods-downloader-1.6.3 Bump cocoapods-downloader from 1.2.2 to 1.6.3
Merge pull request #4 from S2Ler/dependabot/bundler/cocoapods-downloader-1.6.3
Bump cocoapods-downloader from 1.2.2 to 1.6.3
Swift wrapper around ImageIO framework.
To run the example project, clone the repo, and run pod install from the Example directory first.
pod install
import SwiftyImageIO let source = ImageSource(data: imageData, options: nil) let thumbnailCGImage = source?.createThumbnail(maxPixelSize: thumbnailSize)
import SwiftyImageIO import MobileCoreServices if let imageDestination = ImageDestination(url: saveURL, UTI: kUTTypeJPEG, imageCount: 1) { imageDestination.addImage(cgImage) let imageSaved = imageDestination.finalize() }
let gifMaker = GIF() try gifMaker.makeGIF(fromAnimatedImage: animatedImage, writeTo: savePath, properties: GIF.Properties(loopCount: 1), frameProperties: GIF.FrameProperties(delayTime: 0.1))
let source = ImageSource(url: jpgWithExifImageURL, options: nil) guard let properties = source?.propertiesForImage() else { XCTFail("We created image without properties."); return } guard let gpsProperties = properties.get(GPSImageProperties.self) else { XCTFail("GPS Not available") return }
Test Examples
pod "SwiftyImageIO"
dependencies: [ .Package(url: "https://github.com/diejmon/SwiftyImageIO.git", majorVersion: 0, minor: 4) ]
github "diejmon/SwiftyImageIO" ~> 0.4
The list of exif values can be found in this document
Alexander Belyavskiy, diejmon@gmail.com
SwiftyImageIO is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SwiftyImageIO
Swift wrapper around ImageIO framework.
Usage
To run the example project, clone the repo, and run
pod install
from the Example directory first.Examples
Create image thumbnail
Write image to disk
Create GIF from animated UIImage
Read GPS image properties
Test examples
Test Examples
Installation
CocoaPods
Swift Package Manager
Carthage
EXIF
The list of exif values can be found in this document
Author
Alexander Belyavskiy, diejmon@gmail.com
License
SwiftyImageIO is available under the MIT license. See the LICENSE file for more info.