npm package to rotate the image based on EXIF values stored in the image.
$ npm install fix-image-rotation
let fixRotation = require('fix-image-rotation')
let ArrayOfFilesToBeRotated = [File1, File2]
let myRotationFunction = async function (ArrayOfFilesToBeRotated) {
let blobOfArray = await fixRotation.fixRotation(ArrayOfFilesToBeRotated)
return blobOfArray
}
This project is licensed under the MIT License - see the LICENSE.md file for details