Latest 1.0.1
Homepage https://github.com/danjiang/DTImage
License MIT
Platforms ios 8.4, requires ARC
Authors

Swift
Platform
CocoaPods
Carthage compatible

Introduction

Simple image processing.

Installation

Requirement

iOS 8.4+

CocoaPods

To install DTImage add a dependency to your Podfile:

pod "DTImage"

Carthage

To install DTImage add a dependency to your Cartfile:

github "danjiang/DTImage"
carthage update --platform ios

Usage

Import

import DTImage

Use

let image = UIImage()
let control = UIView()

// resize
image.dt_resize(to: CGSize(width: 200, height: 150))

// crop
image.dt_crop(to: CGRect(x: 150, y: 100, width: 100, height: 100))

// snapshot
UIImage.dt_snapshot(view: control)

Latest podspec

{
    "name": "DTImage",
    "version": "1.0.1",
    "summary": "Simple image processing.",
    "homepage": "https://github.com/danjiang/DTImage",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Dan Jiang": "[email protected]"
    },
    "social_media_url": "http://twitter.com/dtstudio",
    "platforms": {
        "ios": "8.4"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/danjiang/DTImage.git",
        "tag": "1.0.1",
        "submodules": true
    },
    "source_files": "Sources/**/*.{h,swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This