📜  从 jimp js 获取缓冲区 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:40.087000             🧑  作者: Mango

代码示例1
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)