ComfyUI Extension
comfyui-image-expand-nodes
Custom nodes for ComfyUI to expand images with noise for outpainting or inpainting purposes. This allows for seamless image extension in any direction.
tuki0918/comfyui-image-expand-nodes
Nodes3
On cloudLocal install
CategoryImage/Processing
Stars0
Updated8 months ago
Nodes (3)
Image Expand Merger
The node that finally makes the canvas bigger (and hopes the seam is invisible)
Image/Processing
Image Expand Noiser
The node that swaps your pixels for noise so the model can fill the gap
Image/Processing
Image Expand Option
The two dropdowns that steer your whole outpaint
Image/Processing
Readme
ComfyUI Image Expand Nodes
Custom nodes for ComfyUI to expand images with noise for outpainting or inpainting purposes. This allows for seamless image extension in any direction.
Basic Expansion

Expansion with Mask

Seamless Merging

Features
- Expand Image: Add noise to any side of an image (top, bottom, left, right) to prepare for outpainting.
- Inside/Outside Modes: Choose between expanding the canvas (
outside) or overwriting existing content (inside). - Merge: Seamlessly stitch the original image with the newly generated content.
Nodes
1. Image Expand Option
A configuration node to define the expansion strategy.
- direction: Choose the direction to expand (
top,bottom,left,right). - mode:
outside: Increases the image canvas size.inside: Maintains image size but overlays noise on the specified area.
2. Image Expand Noiser
Prepares the image for the generation process.
- Inputs:
image: Source image.options: Configuration fromImage Expand Option.percentage: The ratio of expansion relative to the image size (default: 0.2).mask: (Optional) Mask to merge.
- Outputs:
IMAGE: Image with noise added to the target area.MASK: Mask corresponding to the noisy area (useful for inpainting).
3. Image Expand Merger
Merges the original image with the generated result.
- Inputs:
image1: The original source image.image2: The generated image (output from KSampler/VAE Decode).mask: The mask used for generation.options: Configuration fromImage Expand Option.
- Outputs:
IMAGE: The final combined image.
Installation
- Navigate to your ComfyUI
custom_nodesdirectory. - Clone this repository:
git clone https://github.com/tuki0918/comfyui-image-expand-nodes.git - Restart ComfyUI.
Related Tools
- Expand Image with Noise and Crop + Mask
- Automatically detect and merge overlapping regions of two images