@libpixel/ember-libpixel
v1.1.0
Published
Ember service for LibPixel image processing infrastructure
Downloads
16
Readme
ember-libpixel
An Ember service for LibPixel image processing infrastructure.
With this add-on, you'll get the Ember service interface for creating and signing LibPixel image URLs.
Requirements
- a LibPixel account
If you wish to try out LibPixel, you can get a free 14-day trial at LibPixel.com.
Compatibility
- Ember.js v3.4 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
Installation
To get started, install the add-on in your Ember app directory.
ember install ember-libpixel
Then, configure the add-on by adding the following configuration to
config/environment.js
.
// config/deploy.js
module.exports = function(environment) {
let ENV = {};
ENV['libpixel']: {
host: "ember.libpx.com",
domain: "ember",
defaultSource: "app-images",
secret: "<your-libpixel-secret>",
https: true
};
}
Either host or domain is required. Rest are optional.
host
: Your LibPixel image source endpointdomain
: Your LibPixel image source subdomaindefaultSource
: Name of the image source you want to use by defaultsecret
: Your LibPixel secret if you wish to use Secure URLshttps
: Whether LibPixel URLs are generated with HTTP or HTTPS, defaults tofalse
Usage
ember-libpixel
is a building block and a service interface for LibPixel. To
actually start using LibPixel and harness the power of image processing in
your app, you need one of the following add-ons:
- ember-libpixel-modifier
LibPixel element modifier for
img
tags in your templates - ember-libpixel-image
An image component that you can use to replace your
img
tags and extend
LibPixel Guides host examples, tutorials and walkthroughs on how to use these add-ons in your Ember apps.
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.