Nodes/RC Image Compositor/RC Image Compositor (Complete)
ComfyUI Node

RC Image Compositor (Complete)

Base compositor with Photoshop-compatible blend modes, positioning, scaling, rotation, and opacity.

By kj863257·Created 11 months ago·Updated 9 months ago· 16
RC Image Compositor (Complete)
  • overlay
  • background
  • IMAGE
x_percent100
y_percent0
x_alignfrom_right
y_alignfrom_top
x_offset50
y_offset50
scale_moderelative_to_background_width
scale0.30
rotation0
opacity0.70
blend_modenormal
flip_hfalse
flip_vfalse
blend_if_data{"channel": "gray", "this_layer": {"black": [0.0, 0.0], "white": [1.0, 1.0]}, "underlying_layer": {"black": [0.0, 0.0], "white": [1.0, 1.0]}}
CategoryRC/Image

Inputs (16)

NameTypeDefaultDescription
overlayIMAGE
x_percentINT1000–100Horizontal percentage (0=left, 50=center, 100=right)
y_percentINT00–100Vertical percentage (0=top, 50=center, 100=bottom)
x_alignCOMBOfrom_rightHorizontal alignment: - from_left: Calculate offset from left - from_right: Calculate offset from right (enables tight right alignment)
y_alignCOMBOfrom_topVertical alignment: - from_top: Calculate offset from top - from_bottom: Calculate offset from bottom (enables tight bottom alignment)
x_offsetINT50-10000–10000Horizontal offset pixels, can be negative (use with alignment)
y_offsetINT50-10000–10000Vertical offset pixels, can be negative (use with alignment)
scale_modeCOMBOrelative_to_background_widthScaling mode: - relative_to_overlay: scale by overlay's size - relative_to_background_width: width = scale × bg width - relative_to_background_height: height = scale × bg height
scaleFLOAT0.300.01–10Scale factor, reference depends on 'scale_mode'
rotationFLOAT0-180–180Rotation angle in degrees
opacityFLOAT0.700–1Opacity (0=transparent, 1=opaque)
blend_modeCOMBOnormalComplete Photoshop Blend Modes: normal: Normal - Direct overlay darken: Darken - Select darker pixels multiply: Multiply - Colors multiply to darken color_burn: Color Burn - Darken with increased contrast linear_burn: Linear Burn - Linear darkening lighten: Lighten - Select brighter pixels screen: Screen - Inverse multiply to lighten color_dodge: Color Dodge - Lighten with reduced contrast linear_dodge: Linear Dodge - Direct addition to lighten overlay: Overlay - Combines multiply and screen soft_light: Soft Light - Gentle contrast enhancement hard_light: Hard Light - Strong contrast enhancement vivid_light: Vivid Light - Extreme contrast effect linear_light: Linear Light - Linear contrast adjustment pin_light: Pin Light - Replace colors based on brightness hard_mix: Hard Mix - Creates solid color results difference: Difference - Absolute difference of colors exclusion: Exclusion - Softer difference effect subtract: Subtract - Direct color subtraction divide: Divide - Color division operation hue: Hue - Change only hue, keep saturation & lightness saturation: Saturation - Change only saturation color: Color - Change hue & saturation, keep lightness luminosity: Luminosity - Change only lightness
flip_hBOOLEANfalseFlip horizontally
flip_vBOOLEANfalseFlip vertically
blend_if_dataSTRING{"channel": "gray", "this_layer": {"black": [0.0, 0.0], "white": [1.0, 1.0]}, "underlying_layer": {"black": [0.0, 0.0], "white": [1.0, 1.0]}}Blend color band settings (JSON format)
backgroundoptIMAGEBackground image. If not provided, creates transparent background matching overlay size

Outputs (1)

NameTypeDescription
IMAGEIMAGE