我需要使用 gm 在您的图像中插入水印。
gm('/path/to/input-image.jpg')
.draw(['image Over 0,0 0,0 /path/to/half-transparent-watermark-image.png'])
.write('/path/to/output-image.jpg', function(e){
console.log(e||'done'); // What would you like to do here?
});
但是有错误消息:错误:命令失败:转换:不合格的绘图图元定义`/path/to/half-transparent-watermark-image.png''@ draw.c / DrawImage / 3124。如何插入水印?