Skip to content
pixmato
Menu
Use cases
Open Graph images

A share image for every page, made when you publish

Links without a preview image get passed over, but making one for every article is a chore nobody keeps up. Pixmato generates it from the title, author, and category your CMS already has.

Create your first template

From article metadata to a recognizable link preview

fieldnotes / a-quieter-way-to-work.md
Your article

A quieter way
to work.

Good work needs room to breathe.
A guide to making a little more space.

Article content ready for your API request
Your share-image template1200 × 630
AM
Alex Morgan

A little space for your best work. A new read from Fieldnotes.

fieldnotes.co/journal/a-quieter-way-to-work
In your page’s head<meta property="og:image"
  content="your-image-url" />

Use the article fields your CMS already has.

Your article already contains the details the image needs.

No separate design step before publishing

Stop making a separate graphic for every page.

Use the title, author, and category already stored in your CMS instead of copying them into another design.

Give your editorial brand a consistent frame.

Create and review one share-image template. Reuse the same typography and visual identity for new stories.

Make it part of your publishing code.

Generate the image from your publishing workflow and set its URL in the page metadata. Your application controls when it runs.

What you send, what you get

Five fields your CMS already holds for every article. Send them when the article is published and use the returned image as its preview.

POST /v1/rendersRequest
{
  "template": "YOUR_TEMPLATE_ID",
  "modifications": {
    "section": "Work",
    "title": "The four-day week, two years in",
    "summary": "What 61 companies kept, what they dropped, and the one thing none of them expected.",
    "author": "By Hannah Kessler",
    "read_time": "6 min read"
  },
  "output": {
    "format": "png",
    "scale": 1
  }
}
200 OK · image/pngResponse
The link preview image produced by this request, for an article titled “The four-day week, two years in”.

Templates to start from

Four designs at the 1200 × 630 size that link previews use: an article, a customer story, a year in numbers, and a price announcement.

Browse all 105

Article share image

Article share image design: Article share image
Use

Customer story

Customer success story design: Customer story
Use

Company year in numbers

Yearly usage recap design: Company year in numbers
Use

New price

New price design: New price
Use

Questions about open graph images

How do I attach the image to my page?

The response includes a URL for the finished file. Put that URL in the page’s og:image tag.

Should I generate the image every time someone opens the page?

No. Generate it once when the page is published or its title changes, then keep the URL with the page.

What if a title is very long?

The title cuts off at a whole word after three lines, so the layout holds for any article.

Can different sections have different colors?

Yes. Send a color with the request, or keep a separate template for each section.

Build the template once

Design it in the editor, try it with your own details in a form, and connect the API when you are ready.

Send us a message