【发布时间】:2014-03-10 13:54:10
【问题描述】:
我在我的 node.js 应用程序中使用 imagemagick。我已将图像大小调整如下:
im.resize({
format: 'jpg',
srcPath: imagePath,
dstPath: thumbPath,
width: 220,
}, function(err, stdout, stderr){
//some code
}
});
我希望我的代码将传入的图像转换为jpg。我怎样才能做到这一点?
【问题讨论】:
标签: node.js imagemagick