auto-rotate
v1.0.8
Published
Auto rotate JPEG images based on their EXIF Orientation tag. Promise based API.
Downloads
103
Maintainers
Readme
auto-rotate
Auto rotate JPEG images based on their EXIF Orientation tag. Promise based API.
Installation
$ npm install auto-rotate
Basic example
var rotator = require('auto-rotate');
rotator.autoRotateFile('rotated.jpg', 'fixed.jpg')
.then(function(rotated) {
console.log(rotated ? 'Image rotated' : 'No rotation was needed');
}).catch(function(err) {
console.error('Got error: '+err);
});