Open mirkods opened 6 years ago
@mirkods hi, I think what happens is that the first arg gets split by the space, so the degrees is treated is a file. I'll need to allow to prevent this from happening https://github.com/Sobesednik/node-exiftool/blob/master/src/index.js#L123.
Sorry in this module the args splitting could definitely be improved. It will be fixed in the next version -- in the meantime what would your command look like if you were doing it from the CLI?
In this moment I removed the degrees
word in the format and it works well. Anyway my CLI command was something like this:
exiftool -c "%.8f degrees" test.jpeg
Mirko
Hi there, i was looking for a way to change the coordinates format and I according with this https://github.com/Sobesednik/node-exiftool/issues/38 my code is the following:
The output is
Basically the format is correctly parsed but I don't understand what the
error
key means. What do you think about?Cheers, Mirko