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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5120–16384 | Width of the composition area in pixels |
| height | INT | 5120–16384 | Height of the composition area in pixels |
| padding | INT | 1000–16384 | Extra space around the composition area for positioning images outside the canvas |
| normalizeHeight | BOOLEAN | false | Scale all input images to the same height while maintaining aspect ratio |
| onConfigChangedContinue | BOOLEAN | false | When enabled, automatically grabs the snapshot and continues execution. When disabled, pauses to allow manual composition |
| invertMask | BOOLEAN | false | Invert the alpha channel of all input masks before applying them to images |
| saveFormat | COMBO | PNG Level 0 (fastest) | Image format for saving compositor images. PNG Level 0 is fastest, Level 9 creates smallest files |
| saveFolder | COMBO | output | Folder where compositor images and masks are saved: temp (temporary), input, or output directory |
| image1opt | IMAGE | First input image (optional) | |
| mask1opt | MASK | Alpha mask for first image (optional) | |
| image2opt | IMAGE | Second input image (optional) | |
| mask2opt | MASK | Alpha mask for second image (optional) | |
| image3opt | IMAGE | Third input image (optional) | |
| mask3opt | MASK | Alpha mask for third image (optional) | |
| image4opt | IMAGE | Fourth input image (optional) | |
| mask4opt | MASK | Alpha mask for fourth image (optional) | |
| image5opt | IMAGE | Fifth input image (optional) | |
| mask5opt | MASK | Alpha mask for fifth image (optional) | |
| image6opt | IMAGE | Sixth input image (optional) | |
| mask6opt | MASK | Alpha mask for sixth image (optional) | |
| image7opt | IMAGE | Seventh input image (optional) | |
| mask7opt | MASK | Alpha mask for seventh image (optional) | |
| image8opt | IMAGE | Eighth input image (optional) | |
| mask8opt | MASK | Alpha mask for eighth image (optional) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| config | COMPOSITOR_CONFIG | Configuration object containing compositor settings and processed images with mask filenames |