film-exif/src/electron/exif-helpers.js

17 lines
288 B
JavaScript
Raw Permalink Normal View History

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