This commit is contained in:
@@ -488,7 +488,7 @@ export async function generateOgImages(contentDir, cacheDir, siteName, batchSize
|
||||
const resvgProc = spawnSync(
|
||||
"resvg",
|
||||
["-w", String(WIDTH), "-b", COLORS.bg, "-o", outPath, "-"],
|
||||
{ input: svg, encoding: "buffer" }
|
||||
{ input: svg, encoding: null }
|
||||
);
|
||||
if (resvgProc.error) {
|
||||
throw resvgProc.error;
|
||||
|
||||
Reference in New Issue
Block a user