daliborgogic / ogimage

Open Graph Image as a Service

Home Page:https://api.daliborgogic.com/ogimage/**Open%20Graph**%20Image%20as%20Service.png?theme=dark&md=1&fontSize=100px&slice=9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ogimage

Open Graph Image as a Service. A service that generates dynamic Open Graph images that you can embed in your <meta> tags. For each keystroke, headless chromium is used to render an HTML page and take a screenshot of the result which gets cached.

<head>
  <title>Hello World</title>
  <meta property="og:image" content="https://api.daliborgogic.com/Hello%20World.png" />
</head>
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

# 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}

About

Open Graph Image as a Service

https://api.daliborgogic.com/ogimage/**Open%20Graph**%20Image%20as%20Service.png?theme=dark&md=1&fontSize=100px&slice=9

License:MIT License


Languages

Language:JavaScript 96.8%Language:Dockerfile 3.2%