diff --git a/lib/og.js b/lib/og.js index 9631975..8c96434 100644 --- a/lib/og.js +++ b/lib/og.js @@ -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;