Now we can save the image to an image.png file using the toBuffer() method: const buffer = canvas.toBuffer('image/png') fs.writeFileSync('.
確定! 回上一頁