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.
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.