Get EXIF data from image
npm install exif-image --save
yarn add exif-image
bower install exif-image --save
var exif_image = require('exif-image');
var boys = exif_image.getOrientation(file, callback);
function callback(data) {
console.log(data);
}
Output should be 1 | 2 | 3 ... 8 -> This is equivalent to the EXIF code in the image
import { getOrientation } from 'exif-image';
getOrientation(file, callback);
function callback(data) {
console.log(data);
}
Output should be 1 | 2 | 3 ... 8 -> This is equivalent to the EXIF code in the image