make-og-image
v0.1.2
Published
Simple pluggable og:image generation using HTML.
Downloads
2
Readme
Features
- HTML to PNG generation
- Supports Emojis out of the box with twemoji
- Supports custom fonts
- Automatic image size calculation
<style>
block support
Docs
Visit the documentation site for guides and API references.
Install
npm i make-og-image
Quick Setup
Create the head client somewhere in your root application.
import { createPng } from 'make-og-image'
const png = await createPng(`<div>
<h1>Hello World</h1>
<p>This is a test</p>
</div>`)
Sponsors
License
MIT License © 2023-PRESENT Harlan Wilton