Sobesednik / node-exiftool

A Node.js interface to exiftool command-line application.
MIT License
91 stars 15 forks source link

Update Readme #54

Open woojoo666 opened 4 years ago

woojoo666 commented 4 years ago

It seems like you add a dash - before arguments (see this line in the source code). Thus, the examples in the Readme should look like

ep.readMetadata('photo.jpg', ['File:all']))

and not

ep.readMetadata('photo.jpg', ['-File:all']))

otherwise you end up with an extra dash, resulting in the malformed command exiftool --File:all photo.jpg

I only found this out by stepping through the code using a debugger, so to other people this may just look like a broken library.