mobile-image-load
This directive allow to load and render some image through various EXIF orientation flags, in both landscape and portrait orientation.
Installing
To install the component just:
$ bower install mobile-image-load -save
Then, include the necessary files into your index.html as the example below:
After that, you can import the new directive using 'image-load' tag.
Usage
This directive just work with .jpg, .gif or .png images. To correct the image orientation just add image-load
to a parent <div>
in your image. See the example below:
Options
You can set some options to image render as:
- Height: set the height of the generated canvas just imputing the
height
attribute to the<div>
- Width: set the width of the generated canvas just imputing the
width
attribute to the<div>
- Class: setting the
class
attribute to the<div>
, the directive replaces automatically the default style for the canvas canvas.