javascriptnode.jsimageiptc

node - Parse iptc data from image buffer


Trying to find a way to extract IPTC data from an image file buffer, there are existing libraries available on npm that allow you to open and read a file from the local filesystem but i am storing files on AWS S3 and would prefer to use buffers instead of creating unnecessary disk writes.

Not sure where to start, maybe start looking through how this module works: https://www.npmjs.com/package/extract-iptc And create my own module? Or is there an easier way that i've missed?


Solution

  • I was able to extract IPTC data by using

    var iptc = require('node-iptc');
    var iptc_data = iptc(imageData);