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