ComfyUI Node

Merge Media 🔀

Overlays a foreground over a background. Should handle alpha channels nicely. If the images are different sizes, the foreground will be stretched to match the background. If the image counts are different, the shorter layer (and its alpha channel) will be looped to fill the gap.

By fat-tire·Created about a year ago·Updated about a year ago· 7
Merge Media 🔀
  • foreground
  • background
  • images
blend1.00
foreground_image_shapeB-H-W-C
background_image_shapeB-H-W-C
output_image_shapeB-H-W-C
blend_modeNormal
swap_inputsfalse
Categorymedia

Inputs (8)

NameTypeDefaultDescription
foregroundIMAGE
backgroundIMAGE
blendoptFLOAT1.000.01–1
foreground_image_shapeoptCOMBOB-H-W-C2 options: B-H-W-C, B-C-H-W
background_image_shapeoptCOMBOB-H-W-C2 options: B-H-W-C, B-C-H-W
output_image_shapeoptCOMBOB-H-W-C2 options: B-H-W-C, B-C-H-W
blend_modeoptCOMBONormal9 options: Normal, Multiply, Screen, Overlay, Soft Light, Hard Light, +3
swap_inputsoptBOOLEANfalse

Outputs (1)

NameTypeDescription
imagesIMAGE