Nodes/ComfyUI_LC_MaskMaker_nodes/LC Image Blend Advance 🎚️
ComfyUI Node

LC Image Blend Advance 🎚️

Place a layer on a background (position, scale, aspect, rotate, mirror) and blend it with one of 29 blend modes, through an optional mask.

By lonecatone23Β·Created 6 days agoΒ·Updated about 10 hours agoΒ· 0
LC Image Blend Advance 🎚️
  • layer_image
  • background_image
  • layer_mask
  • image
  • mask
β—„blend_modenormalβ–Ί
β—„opacity100.0β–Ί
β—„swap_rolesfalseβ–Ί
β—„invert_maskfalseβ–Ί
β—„x_percent50.00β–Ί
β—„y_percent50.00β–Ί
β—„mirrorNoneβ–Ί
β—„scale1.000β–Ί
β—„aspect_ratio1.000β–Ί
β—„rotate0.00β–Ί
β—„transform_methodlanczosβ–Ί
β—„anti_aliasing2β–Ί
CategoryLC MaskMaker/blend

Inputs (15)

NameTypeDefaultDescription
layer_imageIMAGEThe layer. An alpha channel, if it has one, is used.
blend_modeCOMBOnormalStandard blend modes. overlay looks at the background, hard_light looks at the layer. LayerStyle's older ImageBlend nodes had these two swapped; see swap_roles.
opacityFLOAT100.00–100Layer strength in percent.
swap_rolesBOOLEANfalseSwap which image is the base and which is the blend for the mode's formula. On + overlay reproduces LayerStyle ImageBlend's old 'overlay' (a standard hard_light).
invert_maskBOOLEANfalseFlip layer_mask (black becomes visible).
x_percentFLOAT50.00-999–999Layer center, as a percent of the background width. 50 = centered.
y_percentFLOAT50.00-999–999Layer center, as a percent of the background height. 50 = centered.
mirrorCOMBONone3 options: None, horizontal, vertical
scaleFLOAT1.0000.01–100Layer size multiplier.
aspect_ratioFLOAT1.0000.01–100Stretches the layer height. 1 = keep proportions.
rotateFLOAT0.00-3600–3600Degrees, counter-clockwise.
transform_methodCOMBOlanczosHow the layer is resampled when scaled or rotated. lanczos is the sharpest for resizing; rotation itself always samples with bicubic, like PIL.
anti_aliasingINT20–4Smooths rotated edges by drawing them larger and shrinking. 0 = off. Higher is slower.
background_imageoptIMAGEThe image the layer is placed on. Leave it unconnected to place the layer on a transparent canvas the size of the layer (the output is then RGBA, with the mask as its alpha).
layer_maskoptMASKWhite = the layer shows. Multiplied with the layer's alpha, if any.

Outputs (2)

NameTypeDescription
imageIMAGEβ€”
maskMASKβ€”