fix: disable -dSAFER flag in Ghostscript commands to ensure proper PDF processing
Build and Push Multi-Platform Images / build-and-push (push) Successful in 28s

This commit is contained in:
2026-05-04 16:17:43 +02:00
parent e2734817a3
commit a9c17b45b3
@@ -22,7 +22,7 @@ export class PdfService {
await execFileAsync('gs', [
'-dNOPAUSE',
'-dBATCH',
'-dSAFER',
'-dNOSAFER',
'-sDEVICE=png16m',
`-dFirstPage=${page}`,
`-dLastPage=${page}`,
@@ -45,7 +45,7 @@ export class PdfService {
await execFileAsync('gs', [
'-dNOPAUSE',
'-dBATCH',
'-dSAFER',
'-dNOSAFER',
'-sDEVICE=png16m',
`-r${dpi}`,
`-sOutputFile=${path.join(tmpDir, 'page-%d.png')}`,
@@ -94,7 +94,7 @@ export class PdfService {
await execFileAsync('gs', [
'-dNOPAUSE',
'-dBATCH',
'-dSAFER',
'-dNOSAFER',
'-sDEVICE=pdfwrite',
`-sOutputFile=${outputPath}`,
inputPath,