我阅读了文档:https://github.com/oliver-moran/jimp,但是没有找到如何将图片从png格式转换为jpg格式的方法。我可能漏看了一些明显的东西。我正在使用Node.js在我的服务器上使用jimp。以下是我的代码:
image.scaleToFit(500, 500, Jimp.RESIZE_BICUBIC).quality(60).write("./public/images/uploads/thumb"+req.file.filename, function(err) {