Socket
Socket
Sign inDemoInstall

make-og-image

Package Overview
Dependencies
7
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    make-og-image

Simple pluggable og:image generation using HTML.


Version published
Maintainers
1
Install size
14.6 MB
Created

Readme

Source

make-og-image

NPM version NPM Downloads GitHub stars

Quick full-featured og:image PNG generation using HTML.


Status:Pre-release
Please report any issues 🐛
Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦 • Join Discord for help

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

FAQs

Last updated on 12 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc