2018-04-20 11:17:44 -04:00
|
|
|
import {ExifTool} from 'exiftool-vendored';
|
2018-04-17 15:55:19 -04:00
|
|
|
const exiftool = new ExifTool();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the EXIF data from the specified image path
|
|
|
|
*
|
|
|
|
* @param {string} imgPath
|
|
|
|
* @return {Promise<Tags>}
|
|
|
|
*/
|
|
|
|
function getExifTags (imgPath) {
|
|
|
|
return exiftool.read(imgPath);
|
|
|
|
}
|
|
|
|
|
2018-04-20 11:17:44 -04:00
|
|
|
export {
|
2018-04-17 15:55:19 -04:00
|
|
|
getExifTags,
|
|
|
|
};
|