ComfyUI Extension: ComfyUI-PS_Flatten_Image
A ComfyUI custom node that simulates Photoshop's 'Flatten Image' functionality.
Custom Nodes (0)
README
ComfyUI-PS_Flatten_Image
A ComfyUI custom node that simulates Photoshop's "Flatten Image" functionality.
Support My Work
If you find this project helpful, consider buying me a coffee:
Description
This node allows you to flatten multiple image layers into a single image, similar to Photoshop's "Flatten Image" command. It takes a batch of images as input and outputs a single flattened image.
Installation
- Clone this repository to your ComfyUI custom nodes directory:
cd /path/to/ComfyUI/custom_nodes/
git clone https://github.com/ShmuelRonen/ComfyUI-PS_Flatten_Image.git
- Restart ComfyUI
Usage
After installation, you'll find a new node called "Flatten Image" under the "PS Operations" category in the node menu.
To use it:
- Connect multiple images to the "images" input
- The node will flatten these images into a single output image
Example
Notes
- The node processes images in order, with the first image in the batch at the bottom and the last image on top
- Currently, the node simply takes the topmost layer as the final result
- If only one image is provided, it passes through unchanged