get buffer from jimp js code example
Example: 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)