https://github.com/alvaropaco/mobile-image-load
This directive allow to load and render some image through various EXIF orientation flags, in both landscape and portrait orientation.
https://github.com/alvaropaco/mobile-image-load
Last synced: 6 months ago
JSON representation
This directive allow to load and render some image through various EXIF orientation flags, in both landscape and portrait orientation.
- Host: GitHub
- URL: https://github.com/alvaropaco/mobile-image-load
- Owner: alvaropaco
- License: mit
- Created: 2015-05-20T21:43:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-25T21:48:38.000Z (about 10 years ago)
- Last Synced: 2024-11-29T12:42:18.263Z (6 months ago)
- Language: JavaScript
- Size: 161 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
$ bower install mobile-image-load -save
```Then, include the necessary files into your index.html as the example below:
```html
```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 `
` in your image. See the example below:
```html
![]()
```
## 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 ``
- *Width*: set the width of the generated canvas just imputing the `width` attribute to the ``
- *Class*: setting the `class` attribute to the ``, the directive replaces automatically the default style for the canvas canvas.