vercel / satori

Enlightened library to convert HTML and CSS to SVG

Home Page:https://og-playground.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: t is undefined when using base64-encoded image as `background-image`

axeleroy opened this issue · comments

Bug report

Description / Observed Behavior

I try to use a picture as background for OpenGraph images in Next.js though next/og's ImageResponse. Because of limitations when using the Node runtime for SSG, I tried using a base64-encoded image. I then encountered TypeError: a is not iterable. When I went to reproduce the issue on Satori's playground, I got another error: t is undefined.

Expected Behavior

Background should be shown as bellow:

image

Source

Reproduction

I had to past the URL in a Gist because it's too long and it hit GitHub's body limit 😓

https://gist.github.com/axeleroy/3817fab16f6e6b41769585bee045753b