vue-plugin can help you get images with correct orientation
npm install vue-img-orientation-changer[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
> A vue directive that fixes your jpeg jpg tiff files orientation.
TIPS: This can really help you stay away from neck damages.
##### Via NPM
```
npm install vue-img-orientation-changer -S
##### Import
`
import Vue from 'vue'
import VueImgOrientationChanger from 'vue-img-orientation-changer'
Vue.use(VueImgOrientationChanger)
`
##### Usage
###### add v-img-orientation-changer on your img element.
``
TIPS: attribute [data-orientation] of the img element will be set with value of img's exif orientation.
```
// final DOM is like below
// means this img orientation is 6;
[npm-image]: https://img.shields.io/npm/v/vue-img-orientation-changer.svg
[npm-url]: https://npmjs.org/package/vue-img-orientation-changer
[downloads-image]: https://img.shields.io/npm/dm/vue-img-orientation-changer.svg
[downloads-url]: https://npmjs.org/package/vue-img-orientation-changer