# Image & Banner Generator - Templates + Data to PNG in Bulk (`digivibetech/image-banner-generator`) Actor

Make social images, OG cards and ad banners from a template and data rows: 5 built-in designs or your own HTML/CSS, many sizes per row, text auto-shrink with a per-image fit check, PNG/JPEG/WebP. $1 per 1,000 images.

- **URL**: https://apify.com/digivibetech/image-banner-generator.md
- **Developed by:** [DigiVibeTech](https://apify.com/digivibetech) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 image createds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Image & Banner Generator - Templates + Data to PNG in Bulk

**Image & Banner Generator** — make social images, OG cards and ad banners from a template and data rows: 5 built-in designs or your own HTML/CSS, many sizes per row, text auto-shrink with a per-image fit check, PNG/JPEG/WebP.

> **Try it free:** press **Start** — the prefilled input runs a small real job (a few items at $0.001 each). Apify's free plan includes monthly platform credit, so a first test costs you nothing. You can also set a maximum cost per run.

- **What you get:** `fileName`, `size`, `width`, `height`, `pixelWidth`, `pixelHeight`
- **Who it's for:** marketers, e-commerce teams and developers
- **Price:** $0.001 per image created
- **Data source:** Renders images from the templates and data you supply.

### What is Image & Banner Generator?

**Price:** $0.001 per image (event `image`, charged once for each image file saved to the run's key-value store and listed in the dataset); pay per event, not a seven-day free-run trial. No start fee.

**Free output sample:** the 2 images of the example input below, made in a 10 November 2026 cloud run: [Open Graph 1200x630 PNG](https://digivibetech.com/assets/apify/image-banner-generator/samples/autumn-reading-og.png) and [square 1080x1080 PNG](https://digivibetech.com/assets/apify/image-banner-generator/samples/autumn-reading-square.png).

[Processing, storage and payment](#processing-storage-and-payment) · [Privacy](https://digivibetech.com/privacy/) · [Support](https://digivibetech.com/support/)

Make social media images, Open Graph cards and ad banners from a template and a list of data rows. One row can come out in many sizes at once, so a blog post gets its link preview, square post and story image in one go.

### ✅ Why this one

- $0.001 per image.
- Your own HTML and CSS design with `{{ fields }}`, or one of 5 built-in designs.
- Many sizes per data row in one run: Open Graph, X, square, story, LinkedIn, Pinterest, YouTube and IAB banners.
- Each output row reports whether the shrink-to-fit text fitted (`textFitted`), the smallest font size used (`fitFontPx`) and how far it was shrunk (`fitScale`, 1 = not shrunk) and lists images that failed to load (`brokenImages`).

### 📸 Real-run screenshots

Apify Console views of the 10 November 2026 cloud run of the example input below.

![Apify Console output table of the 10 November 2026 run: 2 images, Open Graph 1200x630 and square 1080x1080 PNG, both with textFitted true and no broken images](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/image-banner-generator-proof-01-console-run-output-l26.png)

![Apify Console key-value store of that run: the generated autumn-reading-og.png image record next to SUMMARY and ERRORS](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/image-banner-generator-proof-02-console-image-record-l26.png)

![Apify Console run page of that run: status Succeeded, the status message with 2 images created and 0 failed or skipped, and the run log](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/image-banner-generator-proof-03-console-run-log-l26.png)

### ⬇️ What data you get

- **5 built-in designs** that scale their layout to the requested size: title card with brand bar, title + photo, quote card, product promo with price and badge, and event announcement. On the three IAB banner sizes the text gets small; check `fitFontPx`.
- **Your own design.** Write HTML and CSS with `{{ fields }}` (Jinja2 syntax, values are escaped). Add `data-fit` to any element to shrink its text to try to fit (see `textFitted`).
- **Many sizes per row.** Presets for Open Graph (1200x630), X/Twitter, square, portrait, story, LinkedIn, Pinterest, YouTube thumbnail, Facebook cover and IAB banners (728x90, 300x250, 160x600), or any `WIDTHxHEIGHT` from 16 to 4000 px per side.
- **Shrink-to-fit text.** The fit option shrinks long titles and subtitles (the `data-fit` elements) step by step down to 8 px; fitting is not guaranteed, so each output row says whether the text fitted (`textFitted`), the smallest font size used (`fitFontPx`) and the smallest shrink factor (`fitScale`, 1 = not shrunk).
- **Data from JSON or CSV.** Rows in the input, or a public CSV link (up to 20 MB) such as a Google Sheet published as CSV. Comma, semicolon and tab separators are detected from the header row.
- **Brand settings once**: brand colour, text and background colour, logo, Google Font, footer. Every row can override them.
- **PNG, JPEG or WebP**, pixel density 1, 1.5 or 2 (2 gives a 2400x1260 file for Open Graph), and a transparent background for PNG and WebP.
- **File names from your data**, for example `card-{{ slug }}` gives `card-autumn-reading-og.png`.
- **Broken image check.** Images that fail to load, both `<img>` tags and CSS background photos, are listed per output row (`brokenImages`); fonts and stylesheets that fail are listed in `failedResources`.

### 🎯 Use cases

- Create OG images for every blog post from a data sheet
- Make ad banners in many sizes from one template
- Render product promo cards in bulk

### ▶️ How to use

1. Open the actor; the input is prefilled with a small real example.
2. Replace it with your own input.
3. Press **Start**. Results appear in the **Output** tab (Overview view).
4. Download JSON, CSV or Excel, call the results via API, or schedule the actor.

### ⚙️ Input

```json
{
  "template": "og-classic",
  "rows": [
    {
      "title": "Autumn reading guide",
      "subtitle": "Books, workshops and practical notes",
      "eyebrow": "Reading room",
      "slug": "autumn-reading"
    }
  ],
  "sizes": [
    "og",
    "square"
  ],
  "brandColor": "#25636b",
  "footer": "digivibetech.com",
  "logoUrl": "https://digivibetech.com/assets/favicon.svg",
  "fileNameTemplate": "{{ slug }}"
}
```

This batch makes 2 images (1 row in 2 sizes), so it costs $0.002. It loads one logo from digivibetech.com and no photo or web font.

### ⬆️ Output

Each image is saved in the run's key-value store, and the dataset gets one row per image: `row`, `size`, `width` and `height` (design size), `pixelWidth` and `pixelHeight` (file size in pixels), `scale`, `format`, `fileName`, `kvKey`, `imageUrl`, `bytes`, `template`, `textFitted`, `fitFontPx`, `fitScale`, `brokenImages`, `failedResources`, `title` and `createdAt`. Download links are run-storage links, not permanent hosting.

The key-value store also holds **SUMMARY** (images created, failed or skipped, billed count, rows, sizes) and **ERRORS** (jobs that were not charged, with the reason). The run's status message gives the number of images created and the number failed or skipped.

Example dataset row of the example input (`imageUrl`, `bytes` and `createdAt` differ per run and are left out):

```json
{
  "row": 0,
  "size": "og",
  "width": 1200,
  "height": 630,
  "pixelWidth": 1200,
  "pixelHeight": 630,
  "scale": 1.0,
  "format": "png",
  "fileName": "autumn-reading-og.png",
  "kvKey": "autumn-reading-og.png",
  "template": "og-classic",
  "textFitted": true,
  "fitFontPx": 31,
  "fitScale": 1,
  "brokenImages": [],
  "failedResources": [],
  "title": "Autumn reading guide"
}
```

### 💵 Pricing and cost estimate

**$0.001 per image** ($1 per 1,000 images), charged once for each image file saved. No start fee. An image whose photo, logo or font did not load is still made and charged; it is listed in `brokenImages` or `failedResources`.

Not charged, and listed in ERRORS: a row that cannot be filled (a field missing from a custom template or file name template, or an invalid colour, image URL or font name in that row), an image the browser cannot draw or whose page does not load within 30 s, and every job left when your maximum cost per run is reached or when the run is within 30 s of its timeout. An input error (for example an unknown size or a CSV that cannot be read) stops the run before any image is made, with nothing charged.

#### Cost estimate

| Image createds | Cost |
|---|---|
| 100 | $0.10 |
| 1,000 | $1.00 |
| 10,000 | $10.00 |

You pay only for these events: no subscription.

### 🔌 Integrations and API

Run it from **n8n, Make, Zapier, Clay** or any tool that can call an HTTP endpoint, connect a **webhook** to get notified when a run finishes, or let AI agents call it through the **Apify MCP server** (`mcp.apify.com`).

Run it and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/digivibetech~image-banner-generator/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rows": [{"title": "Autumn reading guide", "subtitle": "Books, workshops and practical notes", "eyebrow": "Reading room", "slug": "autumn-reading"}]}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("digivibetech/image-banner-generator").call(run_input={"rows": [{"title": "Autumn reading guide", "subtitle": "Books, workshops and practical notes", "eyebrow": "Reading room", "slug": "autumn-reading"}]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ⚠️ Limits

- Up to 5,000 images per run (rows x sizes); a larger batch stops at the start, not charged.
- Images, logos, fonts and every other request a template makes must go to public http(s) addresses. Each request and each redirect hop is checked by resolving its host name, requests to private or local network addresses are blocked, and WebSockets are not connected.
- The CSV link is read once, up to 20 MB.
- No AI image generation: designs are drawn from HTML and CSS, so the same input on the same build gives the same layout (remote photos, logos and fonts can change).
- Animated GIF and video output are not supported.
- Google Fonts need the font family name as listed on fonts.google.com; an unknown family falls back to the system font and is listed in `failedResources`.

### 🛡️ Data source, privacy and legality

Renders images from the templates and data you supply.

#### Processing, storage and payment

Input, run logs, dataset rows and generated files are processed and stored by Apify. Access to a run's storage depends on Apify settings; some generated file URLs may grant access to anyone who has the link. Treat output URLs as sensitive and do not put secrets, customer records or personal data in sample inputs.

Storage retention depends on your Apify plan, storage settings and deletion actions; no fixed retention period or automatic deletion by this Actor is promised. Review and delete input, logs, datasets and key-value stores in your Apify account when no longer needed. Apify handles run billing under pay-per-event pricing. No separate licence key or seven-day free-run window applies. [Privacy and support information](https://digivibetech.com/privacy/).

Templates, JSON/CSV rows and branding are rendered in Chromium. Optional CSV, logo, photo, font and other template URLs may contact their hosting providers; Google Fonts is contacted only when requested. Use only material you have permission to process. Generated images and diagnostics are saved to Apify storage.

### ❓ FAQ

#### How much does Image & Banner Generator cost?

$0.001 per image created. See the cost estimate table above. There is no monthly fee.

#### Can I try it for free?

Yes. Press Start with the prefilled input: it runs a small real job (a few items at $0.001 each). Apify's free plan includes monthly platform credit, which covers a first test.

#### Is it legal to use Image & Banner Generator?

Renders images from the templates and data you supply. Use the results lawfully (terms of the source, GDPR where it applies). This is not legal advice.

#### Can I use it through the API or an MCP server?

Yes. Every run is available through the Apify API and the official client libraries, and AI agents can call the actor through the Apify MCP server. See Integrations and API above.

#### Something does not work. Where do I get help?

Open an issue on the Issues tab or use [digivibetech.com/support](https://digivibetech.com/support/). Include the run ID so we can reproduce it.

### 📝 Changelog

#### 20 Nov 2026 — listing refresh

- README, listing text and input form restructured to the DigiVibeTech Apify quality standard v1. No feature or price change.

#### 1.0 — builds 1.0.2 to 1.0.6

- First build 2026-10-26, latest build 2026-11-10 (5 successful builds).

### 🧩 More DigiVibeTech actors

- [Bulk Image Converter & Compressor - WebP, AVIF, JPEG, PNG](https://apify.com/digivibetech/bulk-image-converter-compressor)
- [Bulk QR & Barcode Generator - PNG, SVG, Label PDFs](https://apify.com/digivibetech/bulk-qr-barcode-generator)
- [PDF OCR to Markdown - Scanned PDF & Image to Text for RAG](https://apify.com/digivibetech/document-to-markdown-ocr)
- [Bulk WHOIS & DNS Lookup - Domain Expiry, RDAP, SPF, DMARC](https://apify.com/digivibetech/domain-whois-rdap-dns)

*Maintained by DigiVibeTech. Questions or bugs: use the Issues tab or [digivibetech.com/support](https://digivibetech.com/support/); we reply within 2–5 business days.*

# Changelog

This Actor's version history is a separate document: https://apify.com/digivibetech/image-banner-generator/changelog.md

# Actor input Schema

## `template` (type: `string`):

Built-in design, or custom to use your own HTML in 'html'. The built-in designs scale their layout to the requested size; on the IAB banner sizes the text gets small (see fitFontPx).

## `rows` (type: `array`):

One object per image set. Fields used by the built-in designs: title, subtitle, eyebrow, footer, imageUrl, logoUrl, price, oldPrice, cta, brandColor, textColor, background, googleFont. Add slug or fileName for file names.

## `csvUrl` (type: `string`):

Public CSV link, up to 20 MB (for example a Google Sheet published as CSV). The header row gives the field names; comma, semicolon and tab separators are detected. Rows are added after 'rows'.

## `title` (type: `string`):

Quick mode without rows: one image with this title.

## `subtitle` (type: `string`):

Quick mode: subtitle.

## `sizes` (type: `array`):

Presets: og (1200x630), twitter, square, portrait, story, linkedin, pinterest, youtube, facebook-cover, banner-leaderboard, banner-rectangle, banner-skyscraper. Or WIDTHxHEIGHT like 1500x500 (16 to 4000 px per side). Each row is made in each listed size; up to 5,000 images per run.

## `quality` (type: `integer`):

1-100.

## `scale` (type: `number`):

1 = exact size, 1.5 or 2 = that many times more pixels per side, for sharp text on retina screens (2 gives a 2400x1260 file for og).

## `transparent` (type: `boolean`):

PNG or WebP with a transparent page background (for logos and overlays). Not available for JPEG.

## `brandColor` (type: `string`):

Accent colour, e.g. #1a73e8. Rows may override.

## `textColor` (type: `string`):

Main text colour.

## `background` (type: `string`):

Background colour.

## `logoUrl` (type: `string`):

Public image link of your logo, shown on every image of the built-in designs (in your own HTML, use {{ logoUrl }}).

## `googleFont` (type: `string`):

Family name from Google Fonts, e.g. Inter, Poppins or Playfair Display. Empty uses a system font; an unknown family falls back to it and is listed in failedResources.

## `footer` (type: `string`):

Small text such as your site name.

## `html` (type: `string`):

For design custom: full HTML and CSS with {{ fields }} from each row (Jinja2 syntax, values escaped). Add data-fit to an element to shrink its text to try to fit (see textFitted). Also available: \_w and \_h (size in pixels).

## `css` (type: `string`):

Added to every design, e.g. .title{letter-spacing:-0.02em}.

## `fileNameTemplate` (type: `string`):

e.g. card-{{ slug }}. The size name (when more than one size is made) and the extension are added; a repeated name gets -2, -3.

## `fitText` (type: `boolean`):

Long titles get a smaller font, down to 8 px; fit is not guaranteed, so check textFitted, fitFontPx and fitScale on each row.

## `format` (type: `string`):

Image file type.

## `delayMs` (type: `integer`):

Extra wait before the snapshot, for example for late scripts in your own HTML (0-10000). CSS animations are captured in their end state.

## Actor input object example

```json
{
  "template": "og-classic",
  "rows": [
    {
      "title": "Autumn reading guide",
      "subtitle": "Books, workshops and practical notes",
      "eyebrow": "Reading room",
      "slug": "autumn-reading"
    }
  ],
  "sizes": [
    "og"
  ],
  "quality": 90,
  "scale": 1,
  "transparent": false,
  "brandColor": "#1a73e8",
  "textColor": "#111111",
  "background": "#ffffff",
  "fitText": true,
  "format": "png",
  "delayMs": 0
}
```

# Actor output Schema

## `images` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "rows": [
        {
            "title": "Autumn reading guide",
            "subtitle": "Books, workshops and practical notes",
            "eyebrow": "Reading room",
            "slug": "autumn-reading"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("digivibetech/image-banner-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "rows": [{
            "title": "Autumn reading guide",
            "subtitle": "Books, workshops and practical notes",
            "eyebrow": "Reading room",
            "slug": "autumn-reading",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("digivibetech/image-banner-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "rows": [
    {
      "title": "Autumn reading guide",
      "subtitle": "Books, workshops and practical notes",
      "eyebrow": "Reading room",
      "slug": "autumn-reading"
    }
  ]
}' |
apify call digivibetech/image-banner-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digivibetech/image-banner-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/voGwncvuRfWzi2PSn/builds/pd8AxV7FvWDi91QSL/openapi.json
