ExifTool Forum

ExifTool => Newbies => Topic started by: jacin on November 17, 2020, 06:21:21 AM

Title: Create XMP file from tags with exiftool-vendored (npm package)
Post by: jacin on November 17, 2020, 06:21:21 AM
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.



Title: Re: Create XMP file from tags with exiftool-vendored (npm package)
Post by: Phil Harvey on November 17, 2020, 06:52:33 AM
Hi Jacin,

I've got nothing to do with the JavaScript interface in exiftool-vendored, but from this documentation (https://www.npmjs.com/package/exiftool-vendored) it seems you should be able to do what you want with the extractBinaryTag function.

- Phil
Title: Re: Create XMP file from tags with exiftool-vendored (npm package)
Post by: jacin on November 17, 2020, 10:32:31 AM
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.