Skip to content

tuhinpal/dynamic-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e16f042 · Feb 29, 2024

History

41 Commits
Jun 18, 2022
Jul 24, 2022
Oct 4, 2021
Oct 4, 2021
Oct 3, 2021
Jul 24, 2022
Jul 24, 2022
Jan 13, 2022
Oct 2, 2021
Jan 5, 2022
Oct 4, 2021
Feb 29, 2024
Jul 24, 2022
Jul 24, 2022
Jul 24, 2022
Oct 4, 2021

Repository files navigation

Supported By

Logo

Usage

  • Dynamic, open graph image
  • Dynamic image for website
  • Embed dynamic good looking HTML

How it works?

  • Render an HTML template from request options
  • Open this in Puppeteer
  • Take Screenshot to make a PNG or Listen to console log for SVG to have appeared
  • Cache that response to scale in billion

Deploy

Before deploy let's clear one thing, Should you need to deploy? If you have a big website dependent on this repository for open-graph images, then yes, go for it. Else you can use the URL which is given with this repository. This host directly builds the app whenever some changes appear in the repository, so you will get the latest features.

Deploy with Vercel

Thanks to

  • Vercel for Host
  • Canva for theme prototyping
  • Skypack for CDN
  • dom-to-svg for svg in dom

Contribution

Contributions for a theme is welcome. Please see this example.html for more detail. It is instructed to create an issue before committing some function changes.