---
title: 'Image Variations: One Canvas, Many Designs With ?_variant'
meta_title: 'Image Variations From One Canvas (?_variant)'
meta_description: 'Create image variations from a single canvas. Design variants with slugs, swap designs with the ?_variant URL parameter, and localize every image.'
excerpt: 'Canvas variants let one ogdynamic canvas hold several designs, each with its own slug. Add ?_variant=slug to the image URL and the same canvas id renders a different design, from email banners to social previews, with the same dynamic fields everywhere.'
featured_image: /images/blog/image-variations.png
categories:
    - Tutorials
keywords:
    - 'image variations'
    - 'image variations api'
    - 'dynamic image variations'
    - 'generate multiple images from one template'
    - 'canvas variants'
    - 'one canvas multiple designs'
    - 'swap image design url parameter'
    - 'dynamic image generation'
    - 'og image variations'
    - 'a b test og images'
    - 'og image ab testing'
    - 'multilingual email images'
---

Most image workflows stop at one static file per design: export a banner, upload it, wire the link, and repeat for every campaign, locale, and status. Image variations solve exactly that, and ogdynamic generates them from a single canvas. A launch design and a holiday design, an English layout and a French one, a banner that changes when an order ships. The usual answer is to build a separate canvas for each and wire every URL by hand. ogdynamic's **canvas variants** collapse all of that into one design family: a single canvas holds several designs, each with its own slug, and appending `?_variant=slug` to the image URL swaps the whole design. Same canvas id, same dynamic fields, same integration, different artwork.

This guide explains how variant-based image variations work, walks through creating your first variant step by step, and shows where they pay off, from multilingual campaign images to status-driven banners. No code is required beyond pasting a URL.

## What are canvas variants?

A variant is a child design that lives under a base canvas. In the editor, the variant switcher at the top of the canvas stage lists the base design and every variant in the family, and one click switches between them, so you design each version with the full editor: same layers panel, same fonts, same sizes.

Three properties make variants useful in production:

- **One URL to edit.** The public render URL stays the parent canvas's URL. The only change is the `?_variant={slug}` query parameter, so swapping designs means editing one word in a link.
- **One dynamic-field contract.** Every variant in a family shares the same dynamic fields (the layers you marked as overridable). An integration that passes `?title=...` to the base canvas passes the same parameter to any variant and gets the same substitution behavior.
- **One family to manage.** Publish status is shared across the family, variants are editable and deletable from the parent's editor, and every save keeps the image URL and its cache stamp in sync.

Variants are available on every ogdynamic account, in the editor, the API, the [WordPress plugin](/integrations/wordpress), the [email integrations](/integrations), and [MCP](/integrations/mcp).

## How the ?_variant URL parameter works

The published URL of a canvas looks like `https://cdn.ogdynamic.com/c/{id}`. To render a variant instead of the base design, append `_variant` with the variant's slug:

```
https://cdn.ogdynamic.com/c/{id}?_variant=emerald
https://cdn.ogdynamic.com/c/{id}?_variant=indigo
https://cdn.ogdynamic.com/c/{id}?_variant=fr
```

The slug is human-readable and stable, so an integration can embed the parent canvas id once and swap designs by editing one query parameter. Dynamic overrides compose with variants: `?_variant=holiday&title=Now+live` renders the holiday design with the overridden title, exactly like the [URL API](/docs) substitutes parameters on a single design. Together they turn the canvas into an image variations API: one design family, unlimited renders, every variation addressable by URL.

Fallback behavior is deliberate: if a URL names a slug that does not exist (renamed, deleted, or mistyped), the render degrades to the base design rather than returning a 404. A broken link keeps showing an on-brand image. For the same reason, renaming a slug takes effect immediately, so treat published slugs like part of your URL contract.

## Creating your first variant, step by step

The whole flow happens in the ogdynamic canvas editor and takes a few minutes per variant.

### Step 1: Design the base canvas

Start from a [template](/canvases/create) or a blank canvas and build the design you consider canonical: the version that should render whenever a URL carries no variant. Mark the layers your data should control (a headline, a price, a photo) as dynamic fields, because every variant in the family inherits this override contract.

<!-- SCREENSHOT SLOT 1
Shown: the ogdynamic editor in light mode with the amber base design on
the stage, the floating variant switcher pill (design select reading
"Abandoned Cart Banner" plus the Add Variant chip) at the top center,
the layers panel on the left, and the inspector on the right.
Source: public/images/blog/steps/og-image-variant-switcher-canvas-editor.webp
(1600x900 WebP q82)
-->
<img src="/images/blog/steps/og-image-variant-switcher-canvas-editor.webp" alt="ogdynamic canvas editor showing a base design and the variant switcher pill at the top of the canvas stage" />

### Step 2: Add a variant

In the variant switcher at the top of the stage, click **Add Variant**. The create popover asks where to start: the base canvas, or any existing variant as the source. Starting from an existing design keeps the parts you want to keep, so a "holiday" variant of a product card usually means editing the background and badge rather than rebuilding the layout.

Give the variant a **slug** (for example `holiday`) and a name. The name is for you; the slug is for URLs. When the popover saves, the editor lands directly on the new variant, ready to restyle.

<!-- SCREENSHOT SLOT 2
Shown: the New variant popover open above the switcher pill, with the
Start from select on the base canvas, the Slug field filled with
"holiday" beside the ?_variant={slug} hint, and the Name prefilled to
"Abandoned Cart Banner — Amber — holiday".
Source: public/images/blog/steps/og-image-create-variant-popover.webp
(1600x900 WebP q82)
-->
<img src="/images/blog/steps/og-image-create-variant-popover.webp" alt="Add Variant popover in ogdynamic with Start from, Slug, and Name fields for creating a canvas variant" />

### Step 3: Set the slug and copy the variant URL

With a variant active, the inspector's canvas section shows a **Variant slug** field (public canvases only; private canvases have no public handle) above the **Image URL** block. The Image URL already carries the variant's swap URL, `?_variant={slug}`, and a copy button puts the full URL on your clipboard. Rename the slug here if you want a different handle; published URLs that use the old slug start rendering the base design once the rename saves.

Repeat steps 2 and 3 for each design you need: a second seasonal variant, a per-language layout, whatever the family calls for.

<!-- SCREENSHOT SLOT 3
Shown: the emerald variant active in the editor (the design select and
stage show the green render), with the inspector reading VARIANT SLUG
"emerald" directly above the IMAGE URL block and its copy button.
Source: public/images/blog/steps/og-image-variant-slug-image-url-inspector.webp
(1600x900 WebP q82)
-->
<img src="/images/blog/steps/og-image-variant-slug-image-url-inspector.webp" alt="ogdynamic inspector showing the Variant slug field and the Image URL block with the ?_variant swap URL" />

### Step 4: Swap designs anywhere the URL goes

Open two variant URLs side by side and you get two different images from the same canvas id. That is the whole integration surface: paste the `?_variant=dark` link into a social scheduler, the `?_variant=fr` link into a French email, and leave the plain URL as the default on your site. Each URL renders deterministically and is cached on the CDN, so repeat views are fast.

<!-- SCREENSHOT SLOT 4
Shown: the same canvas id rendered twice, side by side: the emerald
variant (?_variant=emerald) on the left and the indigo variant
(?_variant=indigo) on the right, each a live render from the image URL.
Source: public/images/blog/steps/og-image-variant-url-side-by-side.webp
(1600x450 WebP q82)
-->
<img src="/images/blog/steps/og-image-variant-url-side-by-side.webp" alt="Side-by-side renders of the same canvas id using ?_variant=emerald and ?_variant=indigo, showing two different image variations" />

## Where image variations shine

Variants map to any situation where the message stays yours but the artwork must change.

### Multilingual images

Build one design family with a variant per language (`en`, `fr`, `de`) and let your email platform drive it: Mailchimp, Klaviyo, MailerLite, and Kit each substitute merge tags into URLs, so the subscriber's language field can pick the slug. A French subscriber renders the French layout; everyone else gets the default. The [email integrations](/integrations) pass every merge tag through, and the same trick works for locale-specific pages, including the [og:image tag](/blog/og-image-meta-tag) that social platforms read. For the underlying merge-tag mechanics, see how [personalized images work per recipient](/blog/mailchimp-personalized-images).

<!-- SCREENSHOT: MULTILINGUAL
Shown: the same abandoned-cart canvas id rendered twice, side by side:
the base design with its English defaults on the left and the fr variant
(?_variant=fr) with French copy on the right. Dynamic fields are
identical; only the language of the artwork changes.
Source: public/images/blog/steps/og-image-variant-multilingual-en-fr.webp
(1600x333 WebP q82)
-->
<img src="/images/blog/steps/og-image-variant-multilingual-en-fr.webp" alt="Side-by-side renders of the same canvas id: the English base design and its fr variant showing the same abandoned-cart banner in French" />

### Status-driven banners

Order-notification emails reopen for days, and a static banner goes stale the moment the package ships. With a variant per order step (`preparing`, `shipping`, `delivered`), the integration picks the slug from the live order status and the banner updates itself on the next open. The [WordPress cart recovery guide](/blog/abandoned-cart-banner-wordpress) covers the cart-banner setup; variants extend the same idea to any status you can read.

### Seasonal campaign swaps

Campaign seasonality stops being a redesign: add a `blackfriday` variant in November, point the campaign links at it, and remove it in January without touching the base design. Product launches, holiday themes, and promo windows all become slug swaps instead of redesigns.

### A/B test OG images and shared-link creative

Shared-link creative is testable: publish two variants as `?_variant=a` and `?_variant=b`, share each from a separate channel or post, and compare the click data per variant. Because each URL renders deterministically and caches on the CDN, the variant a visitor sees is the variant you measured. When one image wins, the losing design is a delete rather than a rollback, and the page's `og:image` never changes. The [og:image meta tag guide](/blog/og-image-meta-tag) covers the tag setup that points a page at these URLs.

## Variant slug rules and fallback behavior

Slugs follow URL-safe rules: lowercase letters, numbers, hyphens, and underscores, one to sixty-four characters, unique among the family's variants. A variant of a public canvas must carry a slug (it is the public handle), while variants of private canvases have none because private canvases have no public URL at all.

Behavior around renames and deletions is designed for production safety:

- **Renaming a slug** takes effect immediately. URLs using the old slug fall back to the base design; nothing 404s.
- **Deleting a variant** removes its slug the same way, and the editor warns before deleting a canvas whose variants would go with it.
- **Combining variants with keyed renders** (`_variant` together with `_key`) is rejected, because the two parameters describe contradictory render contracts.

## FAQ

### What is a canvas variant in ogdynamic?

A canvas variant is a child design under a base canvas. Each variant has its own artwork and a slug, and appending `?_variant={slug}` to the parent canvas's URL renders that design. All variants share the parent's dynamic fields, sizes, and publish status.

### How do I create image variations?

Design the base canvas, click Add Variant in the editor's variant switcher, choose a source design, set a slug, and restyle. The variant's image URL appears in the inspector with the `?_variant={slug}` parameter already applied; copy it into any site, email, or social tool.

### Do variants work for Open Graph images too?

Yes. Social previews are one of the most common uses: point the page's og:image tag at the canvas URL and every variant renders as its own OG image from the same canvas id, so a blog, a product page, and a landing page can each carry a distinct preview without separate integrations.

### Do variants share dynamic fields with the base canvas?

Yes. The family shares one dynamic-field contract, so a URL that passes `?title=...` to the base canvas passes the same parameter to any variant, and each variant substitutes it into its own design.

### What happens if I delete or rename a variant slug?

URLs referencing the missing slug render the base design instead of failing. Renames apply immediately, so existing links keep resolving (to the base) the moment a slug changes, and nothing returns a 404.

### Can I use variants in Mailchimp, Klaviyo, or WordPress?

Yes. Variants are plain URL parameters, so any integration that embeds an ogdynamic image URL can carry `?_variant={slug}`. In email platforms, a merge tag can even supply the slug value, which is how multilingual image variations work. The [MCP server](/integrations/mcp) also exposes variant creation for AI-assisted workflows.
