/ti-cloudinary

Simple Ember.js components for cloudinary images.

Primary LanguageJavaScript

ti-cloudinary

Simple components for cloudinary images.

Assumes you are using ember-app-kit (more specifically ember-jj-abrams-resolver)

Installation

Import the initializer before you create your app, e.g.

  import Resolver from 'ember/resolver';
  import 'ti-cloudinary/initializer';

  export default Ember.Application.extend({
    Resolver: Resolver['default']
  });

Usage

  {{#ti-resized-background-img src="srcUrlHere" width=100 height=300 crop="fit"}}
    content goes here
  {{/ti-resized-background-img}}

  {{ti-resized-img src="srcUrlHere" width=100 height=300 crop="fit"}}

Only crop, gravity, width, and height work right now. Pull requests welcome!

TODO

Tests!!

LICENSE

MIT