@z-vr:
const exiftool = require('node-exiftool'),
ep = new exiftool.ExiftoolProcess(),
async function test(inputPath) {
await ep.open();
try {
const result = await ep.readMetadata(
inputPath,
['-File:all -dateFormat %Y-%m-%dT%H:%M:%S -datetimeoriginal']
);
console.log(result);
} catch(e) {
console.error(e);
}
await ep.close();
}
test('./test.jpg');
Error:
UnhandledPromiseRejectionWarning: Error: Exiftool process is not open
@z-vr:
Error: