Skip to content

I want the social share image to show the colors I have selected #117

Description

@jamesnw

Because Open Graph does not support svg for the image tag, and because we are not able to pre-compile images for all potential color combinations, we will need a way to serve PNGs on demand.

https://geoffrich.net/posts/svelte-social-image/ outlines one potential strategy for SvelteKit, using https://github.com/vercel/satori to create SVGs from HTML, and https://github.com/yisibl/resvg-js to create PNGs from SVGs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions