Latest 0.5.0
Homepage https://github.com/guilhermearaujo/Bumbo
License MIT
Platforms ios 8.0
Dependencies CryptoSwift
Authors

A swifty client for Thumbor

Version
Carthage compatible
License
Platform
Build Status
codecov

Installation

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

pod 'Bumbo'

or in your Cartfile:

github "guilhermearaujo/Bumbo"

Usage

Configure your server and secret key:

Bumbo.configure(host: "https://thumbor.myurl.com/", secretKey: "MY_SECRET_KEY")
Bumbo.configure(host: "https://thumbor.myurl.com/", secretKey: nil) // Unsafe mode

Build your image URL with the desired settings and filters:

Bumbo.load("http://funnymemes.com/hilarious.jpg")
  .trim()
  .crop(leftTop: (x: 0, y: 0), rightBottom: (x: 200, y: 200))
  .fitIn()
  .resize(width: 320, height: 180)
  .align(horizontal: .left, vertical: .bottom)
  .useSmartDetectors()
  .filter(.grayScale)
  .filter(.stripICC)
  .filter(.rotate(90))
  .filter(.quality(50))
  .filter(.noise(50))
  .toURL()

License

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

Latest podspec

{
    "name": "Bumbo",
    "version": "0.5.0",
    "summary": "A swifty client for Thumbor",
    "description": "Bumbo is a client for [Thumbor](https://github.com/thumbor/thumbor) written in Swift.nIt helps you adding filters to images without worries.",
    "homepage": "https://github.com/guilhermearaujo/Bumbo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Guilherme Arau00fajo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/guilhermearaujo/Bumbo.git",
        "tag": "0.5.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Bumbo/**/*",
    "dependencies": {
        "CryptoSwift": [
            "~> 0.7.2"
        ]
    },
    "pushed_with_swift_version": "4"
}

Pin It on Pinterest

Share This