Skip to content

kyyjonssoni/dynamic-image

 
 

Repository files navigation

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.


About

Dynamically generate images for open-graph or website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.0%
  • JavaScript 3.2%
  • Other 0.8%