Use case

News & Blogs

Auto-generate Open Graph images for every article you publish

The thumbnail that appears when someone shares your article on Twitter, LinkedIn, or iMessage can make or break click-through. Most publishers either use the same generic image for every post, or spend time manually creating a graphic per article. SwarmGen automates this: the moment you publish, a webhook fires, and a branded, article-specific OG image is generated and attached to the post within seconds.

What you can automate

Per-article OG images

Every post gets its own rendered OG image — built from the article title, author, category, and featured image. No two posts share the same preview graphic.

Consistent brand identity

Define the template once with your publication's typography, colours, and layout. Every image that renders adheres to the brand — even when three different contributors publish on the same day.

Works with any CMS

Ghost, WordPress, Webflow, Contentful — if it supports webhooks on publish, you can wire it to SwarmGen. Images are generated server-side so they're ready by the time a crawler visits.

Example merge fields

A typical SwarmGen template for this use case uses the following merge fields. Add them to your HTML as {{fieldName}} and they are replaced with real values at render time.

Merge field payload (JSON)
{
  "title": "The 2025 State of E-commerce Report",
  "author": "Sarah Mitchell",
  "category": "Research",
  "published_at": "20 Apr 2025",
  "image": "https://cdn.example.com/report-cover.jpg"
}

Ghost, WordPress, and Webflow all support publish webhooks. Point yours at a Make or n8n scenario that calls SwarmGen, then writes the rendered image URL back to the post's og_image field.

Start generating images for news & blogs

Create a free account, pick a template or build your own, and start rendering in minutes. No credit card required.

Get started free

More use cases