📅  最后修改于: 2022-03-11 15:03:40.087000             🧑  作者: Mango
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)