fix: magick -append args volgorde (operator na inputs)
This commit is contained in:
parent
80fc78e093
commit
3c3f5a5b56
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ const MERGE_PAGES = process.env.MERGE_PAGES !== 'false'
|
|||
async function mergePages(filePaths, dienstnummer) {
|
||||
const out = path.join(os.tmpdir(), `dienst-${dienstnummer}-${crypto.randomBytes(4).toString('hex')}.jpg`)
|
||||
try {
|
||||
await execFileP(MAGICK_BIN, ['-append', ...filePaths, out])
|
||||
await execFileP(MAGICK_BIN, [...filePaths, '-append', out])
|
||||
return out
|
||||
} catch (err) {
|
||||
console.error(`magick merge failed for ${dienstnummer}: ${err.message}`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue