og-image

Generates deterministic 1200×630 Open Graph and Twitter Card images from templates.

16|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/MohamedAbdallah-14/prompt-to-asset --skill og-image-mohamedabdallah-14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: og-image
Source: https://github.com/MohamedAbdallah-14/prompt-to-asset/tree/main/.cursor/skills/og-image
Command: npx skills add https://github.com/MohamedAbdallah-14/prompt-to-asset --skill og-image-mohamedabdallah-14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate deterministic Open Graph and Twitter Card images for links to ensure consistent, brand-aligned social previews without reliance on diffusion for hero art.

Core Features & Use Cases

  • Deterministic 1200×630 OG images using a typography engine.
  • Template-based rendering with optional hero diffusion for illustrations when needed.
  • Use Case: Create a cohesive share image for blog posts, product pages, or landing pages that matches brand guidelines.

Quick Start

Create a 1200×630 Open Graph image for a URL with a title and optional subtitle.

Frequently Asked Questions about og-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate deterministic Open Graph images for my blog posts?

Generate deterministic Open Graph images by using a template-based rendering pipeline that converts JSX, HTML, and CSS into SVG, then rasterizes the output to a 1200×630 PNG for consistent social sharing visuals.

What's the best way to create brand-consistent social cards without using AI diffusion?

Create brand-consistent social cards using a deterministic typography engine that renders text and layouts precisely into SVG without relying on diffusion, ensuring your social previews match your brand guidelines exactly.

Can I add diffusion-based hero illustrations to an OG image template?

Yes, you can add an optional diffusion-based hero layer to the template rendering pipeline, allowing you to generate custom illustrations for your OG image while keeping the typography and layout deterministic.

How does Satori convert HTML and CSS into SVG for social card generation?

Satori converts HTML and CSS into SVG by parsing the template markup and styles to produce a vector graphic, which is then rasterized into a PNG using resvg-js to create the final social sharing image.

Do I need any external dependencies to rasterize SVG to PNG for Open Graph images?

No external dependencies are required to rasterize SVG to PNG for Open Graph images, as the rendering pipeline utilizes resvg-js internally to handle the conversion from vector graphics to the final PNG format.

Why should I use deterministic OG image generation instead of manual design tools?

Deterministic OG image generation ensures brand-aligned social previews at scale for marketing pages and product sites, automatically applying consistent typography and layouts without the manual effort required by design tools.