Batch image generation

From FerroxLabs/murage · View interactive version

Batch image generation is an AI agent skill from the GitHub repository FerroxLabs/murage. Produces batch image generation strategies with prompt templates using variable placeholders, seed management for consistent series, parameter variation approaches, and output organization systems. Use when the user asks to generate multiple images from a template, create image variations systematic

How to use this skill

Skill file

Batch Image Generation

When to Use

Use this skill when:

Do NOT use when:


Process

Step 1: Define the Batch Scope and Classify the Batch Type

Before writing a single prompt, identify which batch archetype the user's request falls into. Each has different structural requirements.

Ask the user:

Step 2: Build the Prompt Template with Typed Placeholders

A batch prompt template is a reusable structure where every variable element is replaced with a typed placeholder. "Typed" means the placeholder name describes what kind of value fills it, not just a generic {VAR1}.

Template structure anatomy:

[SUBJECT_DESCRIPTION], [SUBJECT_ATTRIBUTE], [ENVIRONMENT], [LIGHTING], [CAMERA_DETAILS], [ARTISTIC_STYLE], [QUALITY_BOOSTERS] [MODEL_PARAMETERS]

Placeholder typing convention:

Constant-locking rules for the template:

Template validation test: Substitute two different variable values manually and read both full prompts aloud. If anything other than the intended variable sounds different, the template has a hidden variable. Fix it.

Step 3: Build the Variation Matrix

The variation matrix is the operational heart of the batch plan. It is a complete enumeration of every image to be generated, with its variable values, full prompt, seed assignment, and output filename.

For a single-variable batch (simplest case):

| # | Variable: Color | Full Prompt | Seed | Output Filename |

|---|----------------|-------------|------|----------------|

| 1 | matte white | [full text] | 1001 | batch_white_1001.png |

| 2 | ocean blue | [full text] | 1001 | batch_blue_1001.png |

For a two-variable cross-product batch:

Generate all combinations systematically. For 4 colors x 3 backgrounds = 12 rows. Always sort the matrix so the slower-changing variable is in the outer loop (colors) and the faster-changing variable is in the inner loop (backgrounds). This makes the matrix easier to review and makes regeneration requests easier to handle.

For a curated selection from a large combination space:

Matrix size thresholds:

Step 4: Define the Seed Management Strategy

Seed behavior differs fundamentally between models. Applying the wrong seed strategy produces incoherent batches or wasted generations.

Midjourney seed behavior:

Stable Diffusion / Flux seed behavior:

DALL-E 3 and GPT-image-1 seed behavior:

Seed documentation rule: Every batch plan must explicitly state the seed strategy in the output, even if the strategy is "random with manual curation." Undocumented seeds make batches impossible to reproduce.

Step 5: Define Parameter Variation Strategy and Conduct Pre-Batch Test

Never run a full batch on untested parameters. A 5% quality improvement in parameter tuning saves 95% regeneration time on a 30-image batch.

Pre-batch parameter sweep protocol:

  1. Select 2-3 representative prompts from the matrix -- choose ones that span the range of your variables (e.g., the lightest color + simplest background, and the most complex variable combination).
  2. Run a parameter sweep on only those 2-3 prompts before committing to the full batch.
  3. Document which parameter value wins and lock it as a constant for the full batch.

Key parameter sweeps by model:

Stable Diffusion / Flux:

Midjourney:

Parameter budget discipline: Pick ONE parameter axis to sweep per pre-batch test. Testing CFG, steps, and sampler simultaneously produces uninterpretable results. Vary one parameter at a time, hold all others constant.

Step 6: Define Output Organization System

Without a systematic output organization, batches beyond 20 images become unmanageable. File names like grid_0023.png and upscaled_final_v3.png destroy any hope of reproducibility.

Naming convention structure:

{batch-id}_{variable1}_{variable2}_{seed}_{version}.{format}

Examples of good file names:

Folder structure for batches under 30 images:

{batch-id}/
  00_brief/        # Prompt template, variable list, parameter settings, this plan
  01_drafts/       # All first-pass generations, unselected
  02_selected/     # Best version per combination, chosen from drafts
  03_upscaled/     # Upscaled/enhanced final versions
  04_exports/      # Final deliverable formats (resized, color-corrected, platform-specific)
  metadata.csv     # One row per image: filename, full_prompt, seed, parameters, selected_flag, notes

Folder structure for batches 30-100 images (sub-batch organization):

{batch-id}/
  00_brief/
  sub-batch-01_{theme}/
    01_drafts/
    02_selected/
  sub-batch-02_{theme}/
    01_drafts/
    02_selected/
  03_upscaled_all/
  04_exports/
  metadata.csv

Metadata CSV schema (minimum required columns):

image_id, batch_id, variable_1_name, variable_1_value, variable_2_name, variable_2_value, seed, model, model_version, full_prompt, negative_prompt, cfg_scale, steps, sampler, ar, generation_timestamp, selected, upscaled, notes

This CSV is the batch's reproducibility record. If someone needs to regenerate image #7 in six months, the CSV contains everything needed.

Step 7: Define the Workflow Sequence and Compile the Full Plan

Assemble the workflow into a concrete, ordered sequence with decision gates.

Standard 5-phase workflow:

Phase 1 -- Template validation (1-4 test images):

Phase 2 -- Parameter sweep (4-16 test images):

Phase 3 -- Full batch generation (all images):

Phase 4 -- Selection and quality gate:

Phase 5 -- Upscaling and export:


Output Format

## Batch Generation Plan: {Batch Name}

### Overview
| Field | Value |
|-------|-------|
| Batch ID | {short-code} |
| Total images | {n} ({breakdown: e.g., 4 colors x 3 backgrounds}) |
| Batch type | {variation / combination / series / parameter-exploration / content-calendar} |
| Target model | {model name and version} |
| Quality tier | {draft / production} |
| Estimated generation time | {time per image} x {n images} = {total} (excluding review) |
| Estimated fast-pass server cost | {if API-based, estimate token/image cost} |

---

### Prompt Template

**Template (copy this, substitute placeholders):**

{CONSTANT_SUBJECT_DESCRIPTION}, {COLOR:value1|value2|value3}, {ENVIRONMENT:value1|value2|value3}, {LIGHTING}, {CAMERA_DETAILS}, {STYLE}, {QUALITY_TERMS} {MODEL_PARAMETERS}


**Negative prompt (constant, copy identically to all prompts):**

{negative prompt text}


**Constants (must appear word-for-word in every generated prompt):**
- Subject core description: "{exact constant text}"
- Lighting: "{exact constant text}"
- Camera angle: "{exact constant text}"
- Style/rendering: "{exact constant text}"

**Variables:**
| Variable Name | Placeholder | Value Options |
|---------------|-------------|---------------|
| {Name} | {PLACEHOLDER} | {val1}, {val2}, {val3} |
| {Name} | {PLACEHOLDER} | {val1}, {val2}, {val3} |

---

### Variation Matrix

| # | {Variable 1} | {Variable 2} | Seed | Full Prompt | Output Filename |
|---|-------------|-------------|------|-------------|----------------|
| 1 | {value} | {value} | {seed} | {full prompt text} | {filename}.png |
| 2 | {value} | {value} | {seed} | {full prompt text} | {filename}.png |
| ... | | | | | |

**Total combinations:** {n}
**Excluded combinations (if curated):** {list excluded combos and reason}

---

### Seed Strategy
- **Seed management approach:** {identical seed / incrementing / random-with-curation}
- **Base seed:** {number or "random"}
- **Seed increment rule:** {e.g., "same seed for all variations" / "seed+1 per composition variant within same variable"}
- **Rationale:** {why this seed approach serves this batch's goals}
- **Regeneration rule:** {if a draft fails, change seed by +100 and document new seed in CSV}

---

### Locked Parameter Settings

| Parameter | Value | Rationale |
|-----------|-------|-----------|
| {parameter} | {value} | {specific reason this value serves this batch} |
| {parameter} | {value} | {specific reason} |

**Pre-batch parameter sweep:**
- **Sweep axis:** {which parameter to test before full batch}
- **Test values:** {list the 3-5 values to test}
- **Test images:** Use rows #{n} and #{n} from the matrix as test prompts
- **Decision rule:** {how to select the winner from the sweep}

---

### Output Organization

**Naming convention:** `{batch-id}_{var1-short}_{var2-short}_{seed}_{version}.png`

**Folder structure:**

{batch-id}/

00_brief/

01_drafts/

02_selected/

03_upscaled/

04_exports/

metadata.csv


**Metadata CSV columns:**
`image_id, variable_1_value, variable_2_value, seed, full_prompt, negative_prompt, {model_params}, generation_timestamp, selected, upscaled, notes`

---

### Workflow Sequence
1. **Template validation** -- Generate images #{n} and #{n}, verify constants behave correctly
2. **Parameter sweep** -- Test {parameter} at {values}, select winner
3. **Full batch generation** -- Generate all {n} images with locked settings, log to CSV
4. **Selection pass** -- Review all drafts, flag best per variation; regenerate any failed rows with seed +100
5. **Upscaling** -- Upscale selected images only using {upscale method}
6. **Export** -- Deliver in {format/dimensions} to {destination}

---

### Reproduction Checklist
- [ ] Full prompt template documented
- [ ] All variable values enumerated
- [ ] All seeds recorded in metadata CSV
- [ ] All parameter settings documented
- [ ] Folder structure created before generation begins
- [ ] Metadata CSV headers created before generation begins

Rules

  1. Never write individual prompts from scratch. Always derive every prompt by substituting values into the validated template. Any prompt written independently of the template introduces hidden variables and breaks batch coherence.
  1. Constants must be lexically identical. Copy-paste the constant portions, do not retype them. "Soft studio lighting from camera-left" and "soft studio lighting, camera-left" are different -- model tokenization may treat them differently, producing subtle inconsistencies across a batch.
  1. Cross-product batches over 30 images require explicit curation justification. When the full matrix would produce more than 30 images, present the curated selection and explain why each excluded combination was dropped. Do not silently reduce the matrix without noting what was removed.
  1. Conduct a parameter sweep before any batch over 10 images. The 4-8 test images required for a sweep are always cheaper than regenerating 15 images because the CFG was too high. This rule has no exception for "simple" batches.
  1. Seed strategy must be model-specific and documented. Using a seed management approach designed for Stable Diffusion on a Midjourney batch (or vice versa) produces misleading expectations. State the model's specific seed behavior in the plan and adjust the strategy accordingly.
  1. DALL-E batches must account for stochastic output with 2-3 generations per variation. Any DALL-E batch plan that assumes one generation per variation row is planning to fail. Budget 2-3 generations per row and include a mandatory selection step.
  1. Do not upscale until a selection pass is complete. Upscaling costs real time and, in API contexts, real money. The selection pass is non-negotiable before upscaling, regardless of batch size.
  1. Every output file must be named according to the batch naming convention before delivery. Delivering files named grid_0043.png from a batch plan is a failure of the plan. The naming convention must be applied to every file in the deliverable.
  1. Metadata CSV must be created before generation begins, not after. An after-the-fact CSV built from memory is unreliable. Create the CSV headers at planning time, fill in each row at generation time.
  1. Combination batches require an outer-loop/inner-loop sort order in the matrix. Sort by the slower-changing variable first (outer loop) and faster-changing variable second (inner loop). This makes the matrix readable, makes regeneration requests easy to locate, and produces a natural review order.
  1. Aspect ratio must be locked as a constant and documented. An AR change between images in the same batch is a structural break -- all downstream uses (web layout, print layout, presentation decks) depend on consistent image dimensions. If multiple ARs are needed, treat each AR as a separate sub-batch.
  1. For batches over 20 images, always recommend a draft/select/upscale workflow -- never suggest generating at maximum quality for all images in the first pass. Draft quality (lower step count, --q 0.5 in Midjourney) reduces generation time by 40-60% for the discovery phase where most images will be rejected.

Edge Cases

Product catalog with appearance-consistent subject (same object, different backgrounds)

The product's appearance must remain identical across all images -- color, shape, finish, proportions. Background is the only variable. The challenge is that even with the same seed and prompt, AI models will alter product details between generations.

Handling approach:

Very large batch (60-200 images) requiring automation

Manual generation at this scale is not viable -- at 2 minutes per image, 100 images = 3+ hours of manual interface work.

Handling approach:

Batch for multiple output platforms requiring different aspect ratios

A social media content batch may need the same image concept in 1:1 (Instagram grid), 9:16 (Instagram Stories/TikTok), and 16:9 (YouTube/Twitter). These cannot be treated as the same image at different crops -- composition must be designed for each ratio.

Handling approach:

Style consistency across a batch when artistic style is a constant

Describing an artistic style in text is inherently ambiguous -- "impressionist oil painting" can produce dramatically different styles between images. In a batch, style drift between images is a common failure mode.

Handling approach:

Iterative batch: User wants to extend or modify an existing completed batch

The user completed a 20-image batch last month and now wants to add 8 more images using the same template, or wants to re-run 5 specific images with a style change.

Handling approach:

Mixed-quality batch (some images excellent, some unusable) after full generation

After running a 24-image batch, 18 are excellent and 6 are unusable (wrong composition, style drift, model glitch).

Handling approach:

Character expression or emotion variation batch (same character, different moods)

Maintaining character appearance across a mood variation batch is the hardest consistency challenge in batch generation.

Handling approach:


Example

Input: "I need to create a set of 16 lifestyle images for a candle brand. We have 4 scent collections (Coastal Breeze, Alpine Forest, Warm Vanilla, Midnight Jasmine), and we want to show each collection in 4 different lifestyle settings that match its mood. These are for Instagram -- 1:1 format. Using Midjourney v6.1."

Output:

Batch Generation Plan: Candle Brand Lifestyle Shoot

Overview

| Field | Value |

|-------|-------|

| Batch ID | candle-lifestyle-ig |

| Total images | 16 (4 collections x 4 settings) |

| Batch type | Combination batch (cross-product, 2 variables) |

| Target model | Midjourney v6.1 |

| Quality tier | Production |

| Estimated generation time | ~2.5 min per image x 16 = ~40 minutes (generation only) + 20 min review and selection |

| Platform | Instagram feed (1:1) |


Prompt Template

Template:

a glass pillar candle with {SCENT_COLOR} wax, {LIFESTYLE_SETTING}, soft warm candlelight glowing, product lifestyle photography, 45-degree camera angle, depth of field with sharp candle focus, cozy atmosphere, natural textures, film grain, muted tones, editorial magazine quality --ar 1:1 --v 6.1 --style raw --s 150 --q 1 --no text, watermark, label, logo, harsh shadows, overexposed

Negative prompt (constant, appended to every prompt via --no):

text, watermark, label, logo, harsh shadows, overexposed

Constants:

Variables:

| Variable Name | Placeholder | Value Options |

|---------------|-------------|---------------|

| Candle wax color | {SCENT_COLOR} | pale seafoam green, deep forest green, warm ivory cream, deep midnight purple |

| Lifestyle setting | {LIFESTYLE_SETTING} | (see matrix -- 4 setting descriptions, each matched to the scent collection) |

Note on setting variable: The lifestyle settings are curated per collection, not interchangeable. Coastal Breeze settings evoke ocean environments; Alpine Forest settings evoke woodland environments; etc. The combination matrix is intentional, not cross-product.


Variation Matrix

| # | Collection | Scent Color | Lifestyle Setting | Seed | Full Prompt | Output Filename |

|---|------------|-------------|-------------------|------|-------------|----------------|

| 1 | Coastal Breeze | pale seafoam green wax | on a weathered driftwood shelf with sea glass and linen towels, ocean breeze cottage interior | 2200 | a glass pillar candle with pale seafoam green wax, on a weathered driftwood shelf with sea glass and linen towels, ocean breeze cottage interior, soft warm candlelight glowing, product lifestyle photography, 45-degree camera angle, depth of field with sharp candle focus, cozy atmosphere, natural textures, film grain, muted tones, editorial magazine quality --ar 1:1 --v 6.1 --style raw --s 150 --q 1 --no text, watermark, label, logo, harsh shadows, overexposed | candle-lifestyle-ig_coastal_driftwood_2200_d1.png |

| 2 | Coastal Breeze | pale seafoam green wax | beside an open window with sheer curtains and ocean view blur in background | 2200 | a glass pillar candle with pale seafoam green wax, beside an open window with sheer curtains and ocean view blur in background, soft warm candlelight glowing... [full prompt] | candle-lifestyle-ig_coastal_window_2200_d1.png |

| 3 | Coastal Breeze | pale seafoam green wax | on a sandy bathroom shelf with rolled white towels and pebbles | 2200 | [full prompt] | candle-lifestyle-ig_coastal_bathroom_2200_d1.png |

| 4 | Coastal Breeze | pale seafoam green wax | on a bleached wooden dining table with eucalyptus stems and white ceramic dishes | 2200 | [full prompt] | candle-lifestyle-ig_coastal_dining_2200_d1.png |

| 5 | Alpine Forest | deep forest green wax | on a rustic pine table with pine cones, dried herbs, and woven wool throw | 2200 | [full prompt] | candle-lifestyle-ig_alpine_pine-table_2200_d1.png |

| 6 | Alpine Forest | deep forest green wax | in a cozy reading nook with leather-bound books and a plaid wool blanket | 2200 | [full prompt] | candle-lifestyle-ig_alpine_reading-nook_2200_d1.png |

| 7 | Alpine Forest | deep forest green wax | on a stone hearth beside a crackling fireplace with birch logs | 2200 | [full prompt] | candle-lifestyle-ig_alpine_hearth_2200_d1.png |

| 8 | Alpine Forest | deep forest green wax | on a wooden windowsill with frost on the glass and snow-covered pines in the background blur | 2200 | [full prompt] | candle-lifestyle-ig_alpine_frosty-window_2200_d1.png |

| 9 | Warm Vanilla | warm ivory cream wax | on a marble kitchen counter with scattered vanilla beans and cinnamon sticks | 2200 | [full prompt] | candle-lifestyle-ig_vanilla_kitchen_2200_d1.png |

| 10 | Warm Vanilla | warm ivory cream wax | on a linen tablecloth with a slice of cake and golden cutlery | 2200 | [full prompt] | candle-lifestyle-ig_vanilla_table-setting_2200_d1.png |

| 11 | Warm Vanilla | warm ivory cream wax | beside a warm bath with rose petals and a folded robe in soft terracotta tones | 2200 | [full prompt] | candle-lifestyle-ig_vanilla_bath_2200_d1.png |

| 12 | Warm Vanilla | warm ivory cream wax | on a bedside table with cream linen bedding and a cup of tea in soft morning light | 2200 | [full prompt] | candle-lifestyle-ig_vanilla_bedside_2200_d1.png |

| 13 | Midnight Jasmine | deep midnight purple wax | on a velvet side table with scattered jasmine blossoms and a silk scarf | 2200 | [full prompt] | candle-lifestyle-ig_jasmine_velvet_2200_d1.png |

| 14 | Midnight Jasmine | deep midnight purple wax | in a dim bedroom with dark linen pillows and a crescent moon visible through a window | 2200 | [full prompt] | candle-lifestyle-ig_jasmine_bedroom_2200_d1.png |

| 15 | Midnight Jasmine | deep midnight purple wax | on a brass tray with dried botanicals and dark moody tiles in background | 2200 | [full prompt] | candle-lifestyle-ig_jasmine_brass-tray_2200_d1.png |

| 16 | Midnight Jasmine | deep midnight purple wax | on a stone balcony railing at night with city lights bokeh in the background blur | 2200 | [full prompt] | candle-lifestyle-ig_jasmine_balcony_2200_d1.png |

Total combinations: 16 (intentional curation -- settings are matched to collections, not cross-product)

Excluded combinations: Coastal Breeze + fireplace hearth (mismatched mood), Alpine Forest + bathtub (mismatched context), etc. Settings were designed to match each collection's emotional territory.


Seed Strategy


Locked Parameter Settings

| Parameter | Value | Rationale |

|-----------|-------|-----------|

| --ar | 1:1 | Instagram feed square format -- all 16 images must be square for grid cohesion |

| --v | 6.1 | Most current stable version; strong product photography rendering |

| --style | raw | Prevents Midjourney from adding unwanted artistic embellishment to product images |

| --s | 150 | Moderate stylize -- enough aesthetic polish for brand quality, not so high that product literalism is lost |

| --q | 1 | Full quality for production assets |

| --no | text, watermark, label, logo, harsh shadows, overexposed | Prevents common product photography failures |

Pre-batch parameter sweep:


Output Organization

Naming convention: candle-lifestyle-ig_{collection-short}_{setting-short}_{seed}_{version}.png

Folder structure:

candle-lifestyle-ig/
  00_brief/
    batch-plan.md          # This document
    prompt-template.txt    # Template and variable list
    character_reference/   # (empty for this batch -- no cref used)
  01_drafts/               # All 16 first-pass generations
  02_selected/             # Best version per collection-setting combination
  03_upscaled/             # Midjourney "Upscale (Subtle)" versions of all 16 selected
  04_exports/              # Final 1080x1080px PNG files ready for Instagram
  metadata.csv

Metadata CSV columns:

image_id, collection, setting, seed, full_prompt, negative_prompt, ar, version, stylize, quality, style_mode, generation_timestamp, selected, upscaled, notes

Workflow Sequence

  1. Pre-batch parameter sweep -- Generate 8 test images (rows #1 and #13, at --s 0/100/250/500). Select winning stylize value. Time: ~20 minutes.
  1. Template validation -- Verify that the constant text is producing consistent candle scale, angle, and lighting behavior across the two test images. If the Coastal Breeze image looks like a different "photographer" than the Midnight Jasmine image, tighten the constant text (add more specific lighting and angle language).
  1. Full batch generation -- Generate all 16 images with locked settings. Generate collection-by-collection (all 4 Coastal first, then all 4 Alpine, etc.) to make review easier. Log each image to metadata.csv immediately after generation.
  1. Selection pass -- Review all 16 drafts. Flag the best generation per row. Note: each row was generated only once, so if a row's result is unusable, regenerate with seed 2300 before proceeding. Target: 16/16 selected.
  1. Upscaling -- Apply "Upscale (Subtle)" in Midjourney to all 16 selected images. Time: ~2x generation time = ~40 minutes.
  1. Export -- Download all upscaled PNGs. Resize to 1080x1080px if needed (Midjourney 1:1 at default quality outputs at ~1024x1024 -- verify resolution meets Instagram's 1080px recommendation). Place in 04_exports/. Deliver to brand team with metadata CSV.

Reproduction Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.