Latest 0.3.0
Homepage https://github.com/diejmon/SwiftyImageIO
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0, requires ARC
Frameworks Foundation, ImageIO
Authors

[Swift]()
Build Status
Version
License
Platform
Carthage compatible
codebeat badge

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

import SwiftyImageIO

let source = ImageSource(data: imageData, options: nil)
let thumbnailCGImage = source?.createThumbnail(maxPixelSize: thumbnailSize)

Write image to disk

import SwiftyImageIO
import MobileCoreServices

if let imageDestination = ImageDestination(url: saveURL, UTI: kUTTypeJPEG, imageCount: 1) {
  imageDestination.addImage(cgImage)
  let imageSaved = imageDestination.finalize()
}

Requirements

Installation

SwiftyImageIO is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SwiftyImageIO"

Author

Alexander Belyavskiy, [email protected]

License

SwiftyImageIO is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftyImageIO",
    "version": "0.3.0",
    "summary": "A swift wrapper around ImageIO framework",
    "description": "Provides an easy interface to ImageIO framework.",
    "homepage": "https://github.com/diejmon/SwiftyImageIO",
    "license": "MIT",
    "authors": {
        "Alexander Belyavskiy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/diejmon/SwiftyImageIO.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*",
    "frameworks": [
        "Foundation",
        "ImageIO"
    ]
}

Pin It on Pinterest

Share This