03/46proof of conceptBilingual Campaign Adaptation

Adaptation Engine

Makes sixteen channel formats in English and Arabic from one approved design master.

See the workflow

An authored production walkthrough

Inside the engine

Adaptation Engine

Authored workflow

Authored workflow illustration

The complete process

A designer owns the layout, photo crop, type and brand rules. English and Arabic fill the same content contract, with RTL layout and shorter copy for small formats. Shape-specific rules adapt the master to social and display sizes. Preflight checks copy fit, contrast, fonts, logo clearance, safe zones and file weight.

An illustrated example of the documented process. No engine is running in this page.

What it solves

Resizing a campaign can lose its hierarchy, crop the subject or break Arabic copy. This engine keeps the master, content and brand rules separate, then checks each exported variant.

How it runs

Six steps, input to output

Goes inOne approved design master, campaign copy in both languages, photographs, focal points and brand rules

  1. 01

    Define the master

    The designer defines slots and shape-specific layouts in HTML and CSS.

  2. 02

    Load content

    Campaign data carries approved lines, shorter small-format headlines, image focal points and provenance.

  3. 03

    Apply brand rules

    Load the palette, fonts and logo constraints, with logical layout for Arabic.

  4. 04

    Fit each format

    Crop around the focal point and fit text within its allowed boxes.

  5. 05

    Run preflight

    Measure copy, fonts, contrast, colour, logo clearance, safe zones and file weight, and flag permit or provenance issues.

  6. 06

    Export and review

    Write PNG or JPEG assets, contact sheets, the gallery and a per-variant report.

Comes outSixteen channel formats in English and Arabic, review galleries, contact sheets and a preflight report

What it does

A local campaign adaptation engine that keeps a designer-owned HTML and CSS master separate from campaign copy, photographs and brand rules.

It produces sixteen formats in English and Arabic, fits copy to named slots and crops photographs around supplied focal points.

Preflight measures overflow, minimum text size, loaded fonts, pixel-level contrast, palette compliance, logo clearance, platform safe zones and display-ad file weight.

The output is a gallery, contact sheets, PNG or JPEG assets and a machine-readable report.

Permit and source checks remain explicit; Arabic copy still needs a native reviewer.

Three decisions

What shaped the build

Built with

5 parts

Playwright · Chromium
Renders and measures each format and language
Node.js · PNGJS
Batch orchestration and pixel-level contrast checks
HTML · CSS
Designer-owned masters, shape rules and logical RTL layout
JSON brand tokens
Approved palette, fonts, logo rules and provenance
PNG · JPEG
Channel exports with display-ad weight limits