/node-auto-rotate

Nodejs auto rotate JPEG images based on their EXIF Orientation tag. Promise based API. => Fork from original source to add FileType into lwip call

Primary LanguageJavaScript

#BBO update to the original fork add File Type into lwip call

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);
});