ogcard: ensure we use jpeg images for satori compat (#10023)

This commit is contained in:
devin ivy
2026-03-07 04:11:57 -05:00
committed by GitHub
parent b8aae166d9
commit 18d7e775f6
2 changed files with 11 additions and 4 deletions
+1
View File
@@ -1,5 +1,6 @@
import React from 'react'
// @NOTE satori does not currently support webp, see vercel/satori#273
function detectMime(buf: Buffer): string {
if (buf[0] === 0xff && buf[1] === 0xd8) return 'image/jpeg'
if (buf[0] === 0x89 && buf[1] === 0x50) return 'image/png'