Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

monograph: use sharp output as buffer instead of stream

Abdullah Atta124499cabb86
diff --git a/apps/monograph/app/utils/generate-og-image.server.tsx b/apps/monograph/app/utils/generate-og-image.server.tsx
index 624a78d84..15ac025eb 100644
--- a/apps/monograph/app/utils/generate-og-image.server.tsx
+++ b/apps/monograph/app/utils/generate-og-image.server.tsx
@@ -162,5 +162,5 @@ export async function makeImage(metadata: OGMetadata, cacheKey: string) {
}
console.timeEnd("satori");
- return Readable.toWeb(sharp(Buffer.from(svg)).png()) as ReadableStream;
+ return sharp(Buffer.from(svg)).png().toBuffer();
}