Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tuhinpal/dynamic-image

Dynamically generate images for open-graph or website
https://github.com/tuhinpal/dynamic-image

Last synced: about 1 month ago
JSON representation

Dynamically generate images for open-graph or website

Awesome Lists containing this project

README

        

[![Supported By](https://raw.githubusercontent.com/tuhinpal/tuhinpal/master/supported-by-banner.svg)](https://ddevi.com/?utm_source=tuhin_github_dynamic_image)

Logo

# [Create a dynamic image](https://dynamic-image.vercel.app)

## 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](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Ftuhinpal%2Fdynamic-image&env=AXIOM_KEY)

## Thanks to

- Vercel for Host
- Canva for theme prototyping
- [Skypack](https://www.skypack.dev/) for CDN
- [dom-to-svg](https://github.com/felixfbecker/dom-to-svg) for svg in dom

## Contribution

Contributions for a theme is welcome. Please see this [example.html](https://github.com/tuhinpal/dynamic-image/blob/master/examples/index.html) for more detail. It is instructed to create an issue before committing some function changes.