Latest 0.4.0
Homepage https://github.com/AckeeCZ/Resizin-iOS-SDK
License MIT
Platforms ios 8.0
Authors

Build Status
Carthage compatible
Version
License
Platform

Resizin is iOS SDK for Ackee’s image server resizin.com

Requirements

Resizin requires iOS 8 and later.

Installation

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

pod "Resizin"

Resizin is also available through Carthage. To install it, simply add the following line to your Cartfile

github "AckeeCZ/Resizin-iOS-SDK"

Usage

At the beginning you need to set up the shared ResizinManager using your project name and client key. Typically you do this in your AppDelegate.

let projectName = "ackee" // put your project name here
let clientKey = "ackee_test_key" // put your client key here
ResizinManager.setupSharedManager(projectName: projectName, clientKey: clientKey)

When you have your shared manager set up you can then obtain direct url to you image.

let imageURL = ResizinManager.shared.url(for: "image_key")

This url just obtains url to the image "as is", if you want to apply any transformations you need to provide ResizinSettings.

You can request various transformations:

  • size
  • crop mode
  • gravity
  • filters
  • quality
  • rotation
  • upscale flag
  • background color
  • alpha
  • border
let size = ResizinSize(cgSize: CGSize(width: 100, height: 200), scale: Int(UIScreen.main.scale))
let settings = ResizinSettings(size: Constants.resizinSize, cropMode: .fill)
let imageURL = ResizinManager.shared.url(for: "image_key", settings: settings)

Author

Ackee team

License

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

Latest podspec

{
    "name": "Resizin",
    "version": "0.4.0",
    "summary": "Resizin iOS SDK",
    "description": "Manipulate with images",
    "homepage": "https://github.com/AckeeCZ/Resizin-iOS-SDK",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jan Miu0301saru030c": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AckeeCZ/Resizin-iOS-SDK.git",
        "tag": "0.4.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Resizin/Classes/**/*.swift",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This