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

About stay_open using multiprocessing #64

Closed jishi92 closed 1 year ago

jishi92 commented 1 year ago

If I have []byte data from internet and now I have to save it a file and then call ExtractMetadataInfo(filename). Does the stay_open pattern support input []byte data? Such as func ExtractMetadataInfo(data []byte)(rst FileMetadata,err error){ }

barasher commented 1 year ago

Hi,

I've checked very quickly : it seems that exiftool only supports files as input. go-exiftool might create a temporary file, copy the []byte in the file and then extract metadata from the file but that could be done on the client-side.

Nevertheless, as I told, I've just checked quickly : do you know how to do it using exiftool directly ?

barasher commented 1 year ago

Since I dit not get any answer, I close the issue.

@jishi92 > if you come back, don't hesitate to re-open the issue.