nathanpeck / exiftool

A Node.js wrapper around exiftool, providing metadata extraction from numerous audio, video, document, and binary filetypes
MIT License
81 stars 26 forks source link

exiftool and nodejs #3

Closed pkristoff closed 9 years ago

pkristoff commented 9 years ago

Hey,

not sure if this is the right place to do this but here it goes: i am trying to use the Exiftool (btw, love it) with nodejs. i found your website related to npm. o first is there a Sync version for using the Exiftool? o second is there anyway to pull out other information from the jpeg file? I use the regular tool calling it through ruby: i need to get information like copyright, title, description, etc. o third is there a way to change the information, like the regular tool does? o fourth is the a way to call the Exiftool, not the nodes interface, from node?

Paul Kristoff

nathanpeck commented 9 years ago

1) There is no sync version because the lower level communication with the exiftool binary is asynchronous, therefore you are best off using an asynchronous interface to get the data back. However if you just really don't like asynchronous communication you can use a wrapper such as synchronize if you want, and it will return the data in a synchronous manner.

2) This interface module doesn't limit any of the data that is returned from the file. It just returns everything that exiftool returns. If you don't see copyright, title, description then that data probably isn't in the file in the first place. You can verify if you want by running exiftool on the file directly.

exiftool yourfile.jpg

3) No, this module does not support editing the metadata, only extracting it. If this is something you are interested in then I'll add it to my to do list, but it may be a little while before I get to it.

4) I don't really understand what you are asking in your fourth question. If you are interested in communicating with the exiftool binary directly instead of using this node interface the you can use child processes. This is exactly how this interface module calls exiftool.

pkristoff commented 9 years ago

thanks,

you don’t need to add any new features.

Paul

On Sep 22, 2014, at 10:27 AM, Nathan Peck notifications@github.com wrote:

1) There is no sync version because the lower level communication with the exiftool binary is asynchronous, therefore you are best off using an asynchronous interface to get the data back. However if you just really don't like asynchronous communication you can use a wrapper such as synchronize if you want, and it will return the data in a synchronous manner.

2) The module doesn't limit any of the data that is returned from the file. It just returns everything that exiftool returns. If you don't see copyright, title, description then that data probably isn't in the file in the first place. You can verify if you want by running exiftool on the file directly.

exiftool yourfile.jpg

3) No, this module does not support editing the metadata, only extracting it. If this is something you are interested in then I'll add it to my to do list, but it may be a little while before I get to it.

4) I don't really understand what you are asking in your fourth question. If you are interested in communicating with the exiftool binary directly instead of using this node interface the you can use child processes. This is exactly how this interface module calls exiftool.

— Reply to this email directly or view it on GitHub.

nathanpeck commented 9 years ago

You're welcome. Glad to help.