chromeos / chromeos.dev

chromeOS.dev is the digital home for all things ChromeOS. Learn how to adapt and optimize your existing apps to work on ChromeOS, the success other companies have had doing so, how to use ChromeOS as your developer machine, and keep up-to-date with the latest on ChromeOS.
https://chromeos.dev
Apache License 2.0
249 stars 80 forks source link

Dynamically generate share images #519

Open Snugug opened 1 year ago

Snugug commented 1 year ago

Instead of just a generic share images, we should dynamically generate share images that include some information about the page, similar to what GitHub does with repos.

Maybe utilize something like https://vercel.com/blog/introducing-vercel-og-image-generation-fast-dynamic-social-card-images

Snugug commented 4 months ago

This is becoming more important as the images being grabbed seem to be fairly random and, in some cases, aren't what we want at all (author headshot, for instance).

May be blocked on https://github.com/withastro/roadmap/pull/916, but then we should be able to use https://www.npmjs.com/package/@vercel/og to render, something: