ComfyUI Extension
comfyui-ps-normal-layer-composite
A tiny ComfyUI custom node pack for compositing two transparent images like Photoshop's normal layer mode and saving as transparent PNG.
Doki21yy/comfyui-ps-normal-layer-composite
Nodes—
On cloudLocal install
Stars0
Updated3 months ago
Readme
ComfyUI PS Normal Layer Composite
A tiny ComfyUI custom node pack for compositing two transparent images like Photoshop's normal layer mode and saving the result as a transparent PNG.
Nodes
-
PS Normal Layer Composite (RGBA)- Composites
top_imageoverbottom_imageusing straight-alpha normal blending. - Supports
top_x,top_y,top_opacity, and multiple canvas sizing modes. - Accepts optional ComfyUI
MASKinputs for each image's alpha. - Outputs RGBA image, RGB preview, alpha mask, and ComfyUI transparency mask.
- Composites
-
Save Transparent PNG (RGBA)- Saves an
IMAGEwith an alpha channel as a real transparent PNG. - Can also combine an RGB image with an external alpha/mask input.
- Saves an
Installation
Clone this repo into ComfyUI/custom_nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/Doki21yy/comfyui-ps-normal-layer-composite.git
Restart ComfyUI after installation.
Basic Workflow
- Load two transparent PNG files with
LoadImage. - Connect the bottom layer's
IMAGEtobottom_image. - Connect the top layer's
IMAGEtotop_image. - Connect each
LoadImagemask output tobottom_alphaandtop_alpha. - Keep
mask_modeascomfy_transparency_maskfor standard ComfyUI masks. - Connect
rgba_imagetoSave Transparent PNG (RGBA).
Notes
ComfyUI's built-in IMAGE is often RGB-only, while transparency is passed separately as a MASK. This node supports both RGBA tensors and separate mask inputs, so it works with common image-loading workflows.