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