Create XMP file from tags with exiftool-vendored (npm package)

Started by jacin, November 17, 2020, 06:21:21 AM

Previous topic - Next topic

jacin

Hello all,

This forum is amazing. It feels so pro I feel very very newbie. In fact, I am.

I wonder if you have used the npm package: exiftool-vendored. I want to extract XMP metadata and create a XMP file from a DNG.

I have made this with exiftool this way: exiftool -xmp -b -w xmp name_file.dng

But I need to replicate it in a node environment. I have the tags using exiftool-vendored: exiftool.read('file.dng') and I need those tags to be saved as XMP file.

I'm sorry if it is not clear, I'm a bit confused.

Thank you, Jacin.




Phil Harvey

Hi Jacin,

I've got nothing to do with the JavaScript interface in exiftool-vendored, but from this documentation it seems you should be able to do what you want with the extractBinaryTag function.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jacin

Hello Phil,

Thank you so much. I'll try with extractBinaryTag.

I have found another npm package called exift easier to understand.

Thank you for your work,

Jacin.