barasher / go-exiftool

Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)
GNU General Public License v3.0
250 stars 44 forks source link

How to use it on Windows? #35

Closed sytgj7896321 closed 3 years ago

sytgj7896321 commented 3 years ago

I have put the 'exiftool.exe' in %PATH%, but it still got 'Error when intializing: error when executing commande: exec: "exiftool": executable file not found in %PATH%'

barasher commented 3 years ago

go-exiftool has been developed on Linux and never tested on Windows. The exiftool binary that go-exiftool is looking for has to be named exiftool, without any file extension. On Windows it is not exiftool but exiftool.exe. Here is the bug. I'll have a look this week.

barasher commented 3 years ago

On v1.6.1 :