Reputation: 85
I want to merge 2 images using node.js an gm for node. In fact I want to place one smaller image on cordinates x,y on a larger image.
I've allraedy someting working with append() but i cannot choose to put the second image above the first one
here's my js code of append.
gm('img/vector/test.svg').append('img/base/test.png').write('img/final/test.png', function(err, stdout, stderr, command){
if (err){
console.log('image conversion error!');
console.log(err);
console.log(command);
}else{
console.log('image converted with command :');
console.log(command);
}
})
Upvotes: 4
Views: 4329
Reputation: 14434
"This option creates a single image where the images in the original set are stacked top-to-bottom" says the gm doc
usually i would say take a look at montage, but the node-module does not seem to support that...
Upvotes: 1