Sobesednik / node-exiftool

A Node.js interface to exiftool command-line application.
MIT License
91 stars 15 forks source link

Support for reading and writing EXIF to file stream #18

Open tomchomiak opened 7 years ago

tomchomiak commented 7 years ago

Hey @Sobesednik

Thank you for the great repo! Would be awesome if you could also read and write EXIF to a file stream. Any plans for something like this?

var remoteURL = 'https://nodejs.org/static/images/logos/nodejs-new-pantone-black.png'
var upstreamServer = 'http://someupstreamserver/uploads'

request
  .get(remoteURL)
  .pipe(
      // TODO read EXIF
      // TODO write missing EXIF
      request
        .post(upstreamServer, function(err, httpResponse, body){
          res.send(201)
      })
  )
z-vr commented 7 years ago

@tomchomiak hi thanks for the request, it is something we have looked at before, but didn't get time to address it. Will let you know when it's possible.

z-vr commented 7 years ago

@tomchomiak you might wanna try https://github.com/kapouer/node-streat

tomchomiak commented 7 years ago

@Sobesednik Thank you so much!

z-vr commented 7 years ago

@tomchomiak you can read from a file now https://github.com/Sobesednik/node-exiftool#reading-metadata-from-a-stream I will add stream writing in future because I think it's an awesome idea 👍

legomind commented 6 years ago

Any update on this? I can submit a PR

mattkeener77 commented 6 years ago

@Sobesednik Thanks for your great work here! It would definitely be useful to have the stream writing capability. Any word on when that feature may happen? Thanks!

antmarot commented 5 years ago

I have an app whose only purpose is to download JPEGs to then upload them elsewhere with additional EXIF tags. Writing EXIF as a transform stream would really be nice!