This commit is contained in:
be5invis 2021-03-06 03:41:09 -08:00
parent 63b9b5493d
commit 96ada28d2e
128 changed files with 13 additions and 2 deletions

View file

@ -21,8 +21,8 @@ app.on("window-all-closed", function () {
function combineImages(images, outPath, width, height, doubleTrim) {
let command =
`magick ${images.join(" ")} -append -crop ${width}x${height} ` +
`+0+0 +repage -bordercolor #008000 -fuzz 5% -trim ` +
`magick ${images.join(" ")} -append -crop ${width}x${height}+0+0 ` +
`+repage -bordercolor #008000 -fuzz 5% -trim ` +
`${doubleTrim ? `-bordercolor ${doubleTrim} -trim` : ""} ${outPath}`;
console.log(command);
cp.exec(command, function (err, stdout, stderr) {