Giter VIP home page Giter VIP logo

imgix-objc's Introduction

Imgix

⚠️ This is a work in progress. ⚠️

Build Status Coverage Status

Unofficial Imgix client for iOS.

Written in Objective-C for maximum flexiblity. It's annotated with nullability so it works well with Swift.

Usage

All of the options are implemented as properties with in-line documentation so it's easy to manipulate your images without looking up their documentation. Simply create an IGXClient with your host and token. (You can specify nil for your token if you don't want signed URLs.)

Now you can adjust the properties to customize your image. All URLs you create with URLWithPath: will have those settings applied. This is especially handy if you use the same options everywhere.

The following example is in Swift, but you can of course use this library in Objective-C as well.

import Imgix

// Create a client
let client = IGXClient(host: "nothingmagical.imgix.net", token: "sMTidnYXXg9NB4qh")

// Generate a signed URL
client.URLWithPath("sam.jpg")
// => https://nothingmagical.imgix.net/sam.jpg?s=...

// Increase the brightness
client.brightness = 10

// Generate another signed URL
client.URLWithPath("sam.jpg")
// => https://nothingmagical.imgix.net/sam.jpg?bri=10&s=...

imgix-objc's People

Contributors

soffes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.