var gm = require('gm').subClass({imageMagick: true})var tanpwd = process.cwd()var code = { getCode:function(){ gm(tanpwd+'\\config\\bg.jpg')// 原图路径 .write(tanpwd+'\\upload\\b.png', function (e) {// 输出的图片路径 if(e) { console.log(e.message) }else { console.log('done') } }) } }module.exports = code
一直说我参数错误
Command failed: Invalid Parameter - C:xxxxxxxxxxxxuploadb.png
所以这东西到底怎么用imageMagick
ibeautiful
慕神8447489