Skip to content

satori-renderer.ts#

View Markdown

Source

1 documented symbol. Read the signatures first, then expand each item for parameters, return types, and examples.

1 symbols 1 functions 3 parameters 1 returns

Reference#

fnrenderHtmlToPngWithSatori(source: string, options: ResolvedOgImageOptions, root: string): Promise<Buffer>Render an HTML string to PNG using Satori and resvg.

Render an HTML string to PNG using Satori and resvg.

Signature

export async function renderHtmlToPngWithSatori(source: string, options: ResolvedOgImageOptions, root: string): Promise<Buffer>

View source

Parameters

Returns

Promise<Buffer>