4
node.js와 노드 gm을 사용하여 2 개의 이미지를 병합하고 싶습니다. 사실 큰 이미지에서 하나의 작은 이미지를 좌표 x, y에 배치하려고합니다.2 개의 이미지를 node.js 및 gm과 병합
나는 APPEND 작업 allraedy가 someting()을했습니다 그러나 여기 APPEND의 내 JS 코드의 내가 처음
위의 두 번째 이미지를 넣어 선택할 수 없습니다.
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);
}
})
나는 마침내 workarround 사용 몽타주 찾을 : GM ('IMG /베이스 /'+ baseFileName + '. PNG') .subCommand ('몽타주') .texture를 (' img/vector/svg - '+ scorePercent +'. svg ') .geometry (81, 81) .font ('Arial', 18) .fill (textColor) .drawText (textPos, 60, textLabel) .write ('img/final /'+ baseFileName + '. png', function (...) – Seb