digital-resources icon indicating copy to clipboard operation
digital-resources copied to clipboard

Auto-generate OG Images with `playwright`

Open ViorelMocanu opened this issue 1 year ago • 0 comments

Use Playwright and its headless browser to generate screenshots of a static page with different parameters for each of the pages in the [section]/[category]/[subcategory] hierarchy and render them as OG Images.

This might also help: https://github.com/cijiugechu/astro-link-preview

NEW: another alternative - https://github.com/delucis/astro-og-canvas/tree/latest/packages/astro-og-canvas already added, example usage here: https://github.com/paularmstrong/paularmstrong.dev/blob/main/src/pages/og/%5B...route%5D.ts

Depends on #51

ViorelMocanu avatar Oct 04 '23 17:10 ViorelMocanu