Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get buffer from jimp js

const Jimp = require('jimp');

const img = Jimp.read('img.png');

img.getBuffer(Jimp.MIME_PNG, (err, buffer) => {
  console.log(buffer);
});

await img.getBufferAsync(Jimp.MIME_PNG)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #buffer #jimp #js
ADD COMMENT
Topic
Name
7+4 =