在nodejs中加入2个图像

时间:2018-06-15 10:12:35

标签: node.js image-processing

我可以将2张图片加入1,例如:

enter image description here

是否支持nodejs lib?

非常感谢!

2 个答案:

答案 0 :(得分:1)

您可以使用merge-images。 我从未使用它,所以我不确定。

答案 1 :(得分:1)

您可能需要:https://github.com/zhangyuanwei/node-images

Nodejs的跨平台图像解码器(png / jpeg / gif)和编码器(png / jpeg)

images("big.jpg").draw(images("small.jpg"), 10, 10).save("output.jpg");