Nodes/ComfyUI-enricos-nodes/Compositor Config V4
ComfyUI Node

Compositor Config V4

Configuration node for the compositor system V4. Accepts up to 8 images with optional masks, applies masking to create RGBA composites, and provides canvas sizing controls. Masks are serialized to disk with fixed naming (cfg{node_id}-mask{index}.png). The 'onConfigChangedContinue' pause option allows time to build compositions before continuing execution. Outputs configuration objects used by compositor V4 nodes.

By erosDiffusion·Created 2 years ago·Updated 21 days ago· 635
Compositor Config V4
  • image1
  • mask1
  • image2
  • mask2
  • image3
  • mask3
  • image4
  • mask4
  • image5
  • mask5
  • image6
  • mask6
  • image7
  • mask7
  • image8
  • mask8
  • config
width512
height512
padding100
normalizeHeightfalse
onConfigChangedContinuefalse
invertMaskfalse
saveFormatPNG Level 0 (fastest)
saveFolderoutput
Categoryimage

Inputs (24)

NameTypeDefaultDescription
widthINT5120–16384Width of the composition area in pixels
heightINT5120–16384Height of the composition area in pixels
paddingINT1000–16384Extra space around the composition area for positioning images outside the canvas
normalizeHeightBOOLEANfalseScale all input images to the same height while maintaining aspect ratio
onConfigChangedContinueBOOLEANfalseWhen enabled, automatically grabs the snapshot and continues execution. When disabled, pauses to allow manual composition
invertMaskBOOLEANfalseInvert the alpha channel of all input masks before applying them to images
saveFormatCOMBOPNG Level 0 (fastest)Image format for saving compositor images. PNG Level 0 is fastest, Level 9 creates smallest files
saveFolderCOMBOoutputFolder where compositor images and masks are saved: temp (temporary), input, or output directory
image1optIMAGEFirst input image (optional)
mask1optMASKAlpha mask for first image (optional)
image2optIMAGESecond input image (optional)
mask2optMASKAlpha mask for second image (optional)
image3optIMAGEThird input image (optional)
mask3optMASKAlpha mask for third image (optional)
image4optIMAGEFourth input image (optional)
mask4optMASKAlpha mask for fourth image (optional)
image5optIMAGEFifth input image (optional)
mask5optMASKAlpha mask for fifth image (optional)
image6optIMAGESixth input image (optional)
mask6optMASKAlpha mask for sixth image (optional)
image7optIMAGESeventh input image (optional)
mask7optMASKAlpha mask for seventh image (optional)
image8optIMAGEEighth input image (optional)
mask8optMASKAlpha mask for eighth image (optional)

Outputs (1)

NameTypeDescription
configCOMPOSITOR_CONFIGConfiguration object containing compositor settings and processed images with mask filenames