在其他机器上跑的好好的,但是在某台机器上却遇到

  gm  Error: Command failed: ��Ч���� - /data

nodejs代码如下

const gm = require('gm').subClass({ imageMagick: true });
gm(imagePath).resize(w).write("E:/data/aa.png", function (err) {
     if (err) console.log(err);
});

7.0版本安装时必须勾选"Install legacy utilities(e.g. convert)"选项

gm  Error: Command failed: ������ - /data

 

 重新安装,再次运行,问题解决

 

相关文章:

  • 2021-12-01
  • 2021-05-21
  • 2021-10-13
  • 2021-10-09
  • 2021-11-05
猜你喜欢
  • 2021-10-25
  • 2022-12-23
  • 2021-10-24
  • 2021-09-29
  • 2022-02-28
相关资源
相似解决方案