Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamesnw opened this issue Aug 14, 2023 · 0 comments
Open

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

jamesnw opened this issue Aug 14, 2023 · 0 comments

Comments

@jamesnw
Copy link
Contributor

jamesnw commented Aug 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant