javascript - how to load an image from url into buffer in nodejs -
i new nodejs , trying set server exif information image. images on s3 want able pass in s3 url parameter , grab image it.
i u using exifimage project below exif info , according documentation:
"instead of providing filename of image in filesystem can pass buffer exifimage."
how can load image buffer in node url can pass exifimage function
exifimage project: https://github.com/gomfunkel/node-exif
thanks help!
try setting request this:
var request = require('request').defaults({ encoding: null }); request.get(s3url, function (err, res, body) { //process exif here });
this cause request output buffer instead of string.
Comments
Post a Comment