Answer the question
In order to leave comments, you need to log in
Npm jimp - how to return a buffer from jimp?
Good afternoon
, the npm jimp
module
has a method image.getBuffer(mime, cb); returning the image to the buffer.
in code it is used like this
jimp.read('1.jpg').getBuffer('image/jpeg',(err,buffer) => {
DoSomething(buffer)
})
x = jimp.read('1.jpg').getBuffer('image/jpeg',(err,buffer) => {
return buffer
})
DoSomething(x)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question