Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/daliborgogic/ogimage

Open Graph Image as a Service
https://github.com/daliborgogic/ogimage

image open-graph

Last synced: about 1 month ago
JSON representation

Open Graph Image as a Service

Awesome Lists containing this project

README

        

# ogimage

> Open Graph Image as a Service. A service that generates dynamic [Open Graph](https://ogp.me/) images that you can embed in your `` tags. For each keystroke, headless chromium is used to render an HTML page and take a screenshot of the result which gets cached.

```html

Hello World

```

| Query | Description |
|:----------|:----------------------------------------------------------------------|
|`md` | `integer` Use Markdown. Value: `O` or `1`. Deafult is `1`. |
|`theme` | `string` Switch Theme. Value: `light` or `dark`. Default is `light`. |
|`fontSize` | `string` Text font size. Default `96px`. |
|`images` | `string` Add image. |
|`width` | `integer` Image width. |
|`height` | `integer` Image height. |
|`slice` | `integer` If api is in subfolder. (count string length). |

### Usage

```bash
# Pull image
$ docker pull docker.pkg.github.com/daliborgogic/ogimage/ogimage:{TAG}

# Run container
$ docker run -d --restart=always -p 3000:3000 docker.pkg.github.com/daliborgogic/ogimage/ogimage:{TAG}
```