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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -