orientation-exif-blob
v1.0.4
Published
Correctly orientate images using their EXIF metadata
Downloads
4
Maintainers
Readme
orientation-exif-blob
Properly displays an image via canvas based on the exif orientation data. Uses exif-orientation.
Write an image to blob using URL.createObjectURL()
(IE10 >) and display it with the correct exif orientation data. Uses exif-orientation.
Install
npm install orientation-exif-blob --save
Usage
import resetImageOrientation from 'orientation-exif-blob'
resetImageOrientation(image, blob => {
// do as you wish
console.log(blob)
})