This workflow will replace the background of an image and allow you to alter the colors, flip, flop or morph the background, foreground and output images.
Runtime profile
Source description
This workflow will replace the background of an image and allow you to alter the colors, flip, flop or morph the background, foreground and output images.
For best results both images should be the same height and width. Or you can set the "Keep proportion" to false on the "Resize Image" node and it will stretch the foreground to fit the background.
This workflow will install the following node packs.
WAS Node Suite
ComfyUI-KJNodes
ComfyUI_essentials
ComfyUI-MingNodes
ComfyUI-Video-Matting
AI-generated commentary
AI-generated explanation based on source and configuration details. Suggestions are clearly labeled.
Img2img Replace Background is for replacing an image background. It uses a background image and a foreground image, can alter colors, flip, flop, or morph the background, foreground, and output images, and produces output images.
The workflow includes image loading, resizing, matting, compositing, color and brightness adjustments, flipping, morphology, and saving.
Use a background image and a foreground image as inputs.
The workflow produces output images after background replacement and image changes.
Install ComfyUI Manager first if needed, then download and unzip the workflow into ComfyUI/user/default/workflows.
Open the workflow in ComfyUI, close the missing-nodes message, choose “Install Missing Nodes in Workflow” in Manager, install the listed nodes, then restart and refresh ComfyUI.
The workflow lists these node packs: WAS Node Suite; ComfyUI-KJNodes; and ComfyUI_essentials.
It also lists ComfyUI-MingNodes and ComfyUI-Video-Matting.
For best results, use background and foreground images with the same height and width.
If the dimensions differ, set “Keep proportion” to false on the “Resize Image” node to stretch the foreground to fit the background.
Before installing WAS Node Suite, verify that the pack selected in ComfyUI Manager matches the name “WAS Node Suite.”
Suggestion
Does this need to be edited?
Sign in to send an edit request.
Sources
1 sourceSource excerpts
1 excerptSource context: 497 downloads · Type Workflows · Base model Other
This assumes you already have the Comfyui Manager installed. If not, you will need to install it first before using this workflow.
Download and unzip the workflow to the ComfyUI/user/default/workflows folder.
Open the workflow in Comfy. You will get a message stating the missing nodes. Close the message.
Open the ComfyUI Manager and choose “Install Missing Nodes in Workflow” and install all missing nodes on the list. Restart and refresh.
Restart and refresh the ComfyUI and you’re set.
Estimated VRAM requirement
0 GB estimated
Requirements
5 requirementsNode pack · Registry
Node pack · Registry
Node pack · Registry
Node pack · Registry
was-node-suite-comfyui
PossibleNode pack · Registry