From e80b99ce49bdee6262fc3c793a182257d9efcfee Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:25:38 +0200 Subject: [PATCH] fix: resvg og image generation --- lib/og.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/og.js b/lib/og.js index 15538fd..97854b8 100644 --- a/lib/og.js +++ b/lib/og.js @@ -486,7 +486,7 @@ export async function generateOgImages(contentDir, cacheDir, siteName, batchSize // Requires: pkg install resvg const outPath = join(ogDir, `${slug}.png`); console.log(`[og] Generating: ${outPath}`); - const result = spawnSync("resvg", ["-w", String(WIDTH), "-b", COLORS.bg, "-o", outPath, "-"], { input: svg, encoding: null }); + const result = spawnSync("resvg", ["-w", String(WIDTH), "--background", COLORS.bg, "-", outPath], { input: svg, encoding: null, timeout: 30000 }); if (result.error) { console.error(`[og] resvg CLI error for ${outPath}:`, result.error); throw result.error;