auto-rotate

1.0.8 • Public • Published

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

/auto-rotate/

    Package Sidebar

    Install

    npm i auto-rotate

    Weekly Downloads

    12

    Version

    1.0.8

    License

    ISC

    Last publish

    Collaborators

    • vonheim