17 lines
303 B
JavaScript
17 lines
303 B
JavaScript
|
const {ExifTool} = require('exiftool-vendored');
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
getExifTags,
|
||
|
};
|