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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| layer_image | IMAGE | The layer. An alpha channel, if it has one, is used. | |
| blend_mode | COMBO | normal | Standard 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. |
| opacity | FLOAT | 100.00β100 | Layer strength in percent. |
| swap_roles | BOOLEAN | false | Swap 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_mask | BOOLEAN | false | Flip layer_mask (black becomes visible). |
| x_percent | FLOAT | 50.00-999β999 | Layer center, as a percent of the background width. 50 = centered. |
| y_percent | FLOAT | 50.00-999β999 | Layer center, as a percent of the background height. 50 = centered. |
| mirror | COMBO | None | 3 options: None, horizontal, vertical |
| scale | FLOAT | 1.0000.01β100 | Layer size multiplier. |
| aspect_ratio | FLOAT | 1.0000.01β100 | Stretches the layer height. 1 = keep proportions. |
| rotate | FLOAT | 0.00-3600β3600 | Degrees, counter-clockwise. |
| transform_method | COMBO | lanczos | How the layer is resampled when scaled or rotated. lanczos is the sharpest for resizing; rotation itself always samples with bicubic, like PIL. |
| anti_aliasing | INT | 20β4 | Smooths rotated edges by drawing them larger and shrinking. 0 = off. Higher is slower. |
| background_imageopt | IMAGE | The 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_maskopt | MASK | White = the layer shows. Multiplied with the layer's alpha, if any. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| mask | MASK | β |