oddbird / oddcontrast

https://www.oddcontrast.com/
BSD 3-Clause "New" or "Revised" License
28 stars 1 forks source link

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

Open jamesnw opened 1 year ago

jamesnw commented 1 year ago

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.