Nodes Browser
ComfyDeploy: How ImageBlender works in ComfyUI?
What is ImageBlender?
ComfyuiImageBlender is a custom node for ComfyUI. It may be used to blend two images together using a specified blending mode.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ImageBlender
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
COMFYUI-IMAGE-BLENDER
About
ComfyuiImageBlender
is a custom node for ComfyUI.
You can use it to blend two images together using various modes.
Currently, 88 blending modes are supported and 45 more are planned to be added.
Modes logic were borrowed from / inspired by Krita blending modes.
Features:
- 88 blending modes
- support strength parameter
- support mask parameter
Examples:
<details> <summary>Addition</summary> <img src="https://github.com/user-attachments/assets/600cd544-840a-49d1-98e6-c69801da31f2" alt="addition"> </details> <details> <summary>Darken</summary> <img src="https://github.com/user-attachments/assets/f27aecc3-62dd-463b-8a2f-d3e7d75ac8ce" alt="darken"> </details> <details> <summary>Saturation HSV</summary> <img src="https://github.com/user-attachments/assets/1aae01b3-426e-4898-8092-74cc7858914d" alt="saturation_hsv"> </details>Comfyui workflow
Feel free to check the example workflow here.
https://github.com/user-attachments/assets/4b503e6a-cdff-4a3d-ac2b-a482ab0d7d8c
Installation
You need comfyui installed first.
Then several options are available:
- You can download or git clone this repository inside ComfyUI/custom_nodes/ directory.
- If you use comfy-cli, node can be also downloaded from comfy registry:
comfy node registry-install comfyui-image-blender
- Comfy-ui manager support will be added when this pull request is merged.
Contribution and troubleshooting
This is rough implementation, I will appreciate any feedback.
Feel free to raise issue if you spot any mistake or have a suggestion.
If you want to contribute, feel free to fork this repository and create a pull request.
There are still 45 blending modes to be added, so you can help with that.
Future plans
There are still some things to be done:
- ⬜ clean up the code
- ⬜ add more blending modes
- ⬜ test with PNG images
- ⬜ enhance error handling
- ⬜ add comfyui manager support