fix: resvg cli
Build & Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
svemagie
2026-03-31 20:46:45 +02:00
parent 2b9e425c98
commit 3f6d499081
+4 -4
View File
@@ -485,10 +485,10 @@ export async function generateOgImages(contentDir, cacheDir, siteName, batchSize
// Render SVG to PNG using the system resvg CLI
// Requires: pkg install resvg
const outPath = join(ogDir, `${slug}.png`);
const resvgProc = spawnSync(
"resvg",
["-w", String(WIDTH), "-b", COLORS.bg, "-o", outPath, "-"],
{ input: svg, encoding: "buffer" }
const resvgProc = spawnSync(
"resvg",
["-w", String(WIDTH), "-b", COLORS.bg, "-o", outPath, "-"],
{ input: svg, encoding: null }
);
if (resvgProc.error) {
throw resvgProc.error;