0.1.2 • Published 7 months ago

make-og-image v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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