showing results for - "get buffer from jimp js"
Christian
04 Oct 2017
1const Jimp = require('jimp');
2
3const img = Jimp.read('img.png');
4
5img.getBuffer(Jimp.MIME_PNG, (err, buffer) => {
6  console.log(buffer);
7});
8
9await img.getBufferAsync(Jimp.MIME_PNG)
10