---
title: "Merge"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_merge.html"
section_path: "Modifiers > Image > Channels > Merge"
description: "Blends the source image with another image. This is the same operation that is done when blending a layer in a Composition."
---

# Merge

## Brief Description

Blends the source image with another image. This is the same operation that is done when blending a layer in a Composition.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Foreground / foreground` | Image | - |  |
| `Mode / mode` | Choice | Normal | *Add*: Ac + Dc — The source is added to the destination and replaces the destination.<br>*Color Dodge*: if Ac \< 1 → min(1, Bc / (1 - Ac)); else 1 — Brightens the backdrop color.<br>*Lighten*: max(Ac, Bc) — Result is the lighter of source or destination.<br>*Linear Dodge*: min(Ac + Bc, 1) — Lightens image.<br>*Screen*: Ac + Bc - Ac \* Bc — Always lightens.<br>*Hard-light*: multiply or screen depending on Ac.<br>*Hard Mix*: if vivid-light(Ac,Bc) \< 0.5 then 0 else 1<br>*Linear Light*: linear-burn or linear-dodge depending on Ac.<br>*Overlay*: multiply or screen depending on Bc.<br>*Pin Light*: mix of lighten/darken; removes mid-tones.<br>*Soft Light*: complex formula using Bc and Ac.<br>*Vivid Light*: color burn/dodge.<br>*Difference*: abs(A - B).<br>*Divide*: if Dc > 0 and Ac > 0 → Ac / Bc; else 0.<br>*Exclusion*: Ac + Bc - 2 \* Ac \* Bc.<br>*Minus*: Ac - Bc.<br>*Subtract*: Bc - Ac.<br>*Color*: SetLum(Ac, Lum(Bc)).<br>*Hue*: SetLum(SetSat(Ac, Sat(Bc)), Lum(Bc)).<br>*Luminosity*: SetLum(Bc, Lum(Ac)).<br>*Saturation*: SetLum(SetSat(Bc, Sat(Ac)), Lum(Bc)).<br>*Replace*: Ac.<br>*Destination Atop*: Bca × Aa + Aca × (1 - Ba).<br>*Destination Out*: Ba \* Bc \* (1 - Aa).<br>*Destination Over*: Aa \* (1 - Ba) + Bc.<br>*Destination In*: Bc \* Aa.<br>*Source Atop*: Ac \* Ba + Bc \* (1 - Aa).<br>*Source Out*: Ac \* (1 - Ba).<br>*Normal*: Ac + Bc \* (1 - Aa).<br>*Source In*: Ac \* Ba.<br>*Xor*: Ac \* (1 - Ba) + Bc \* (1 - Aa).<br>*Average*: (Ac + Bc) / 2.<br>*Conjoint Over*: depends on Aa and Ba.<br>*Disjoint Over*: depends on Aa + Ba.<br>*Geometric*: 2 \* Ac \* Bc / (Ac + Bc).<br>*Grain Extract*: Bc - Ac + 0.5.<br>*Grain Merge*: Bc + Ac - 0.5.<br>*Hypot*: sqrt(Ac² + Bc²).<br>*Reflect*: Aa² / (1 - Ba).<br>*Color Burn*: darken based on Ac.<br>*Darken*: min(Ac, Bc).<br>*Linear Burn*: Bc + Ac - 1.<br>*Multiply*: Ac \* Bc.<br>*Multiply (Math)*: Ac \* Bc (negative values preserved). |
| `Mask alpha / use_alpha_screen` | Boolean | On | When checked, alpha is processed using screen blending. Enabled only where it makes sense. |
| `Bounding Box / rod_type` | Choice | Union | *Union*<br>*Intersection*<br>*Foreground*<br>*Original* |
| `Source Mode / inputMode` | Choice | Foreground | Whether the extra image source is the foreground or background:<br>*Foreground*<br>*Background* |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between original image (0) and effect-applied image (1). |
