before-after

Before / after OG image template

Two photos split by a slider handle, with Before and After labels and a title.

Before / after Open Graph image template rendered by Shareglint
Before / after template at square size (1080×1080)
Before / after template at portrait size (1080×1350)
Before / after template at story size (1080×1920)
Before / after template at pinterest size (1000×1500)
Before / after template at youtube size (1280×720)

These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.

For photo editing, renovations, redesigns and fitness results. Both photos fill the whole frame and each half shows its own side, so the scene runs on across the white divider like a real comparison slider. Vertical formats split top and bottom.

Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

Field Type Description Example
title text Title over the bottom of the photos. One-click colour grading for listing photos
before_label text Label on the first photo, e.g. Before. default: Before —
after_label text Label on the second photo, e.g. After. default: After —
site text Your domain or a short URL. coastalhomes.com
before_image image URL Photo before the change. https://example.com/images/house-before.jpg
after_image image URL Photo after the change, ideally the same framing. https://example.com/images/house.jpg
accent colour Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #22c55e #22c55e
theme dark | light Colour scheme: dark or light. —

Render it with one request

Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.

curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "before-after",
    "modifications": {
        "title": "One-click colour grading for listing photos",
        "site": "coastalhomes.com",
        "before_image": "https://example.com/images/house-before.jpg",
        "after_image": "https://example.com/images/house.jpg"
    }
}'

Or paste a signed URL into og:image

For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.

<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/before-after.png?site=coastalhomes.com&title=One-click%20colour%20grading%20for%20listing%20photos&s=YOUR_SIGNATURE">

Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

curl -X POST "https://shareglint.com/v1/templates/library/before-after/copy" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

More OG image templates

All templates →