2025-04-02 13:58:27 +03:00
2025-03-20 20:44:28 +02:00
2025-03-20 20:17:55 +02:00
2025-03-20 20:16:54 +02:00
2025-04-02 13:58:27 +03:00
2025-03-20 20:16:54 +02:00
2025-03-20 20:51:15 +02:00

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:

Buy 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

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

  1. Connect multiple images to the "images" input
  2. The node will flatten these images into a single output image

Example

image

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

License

MIT License

S
Description
No description provided
Readme MIT
39 KiB
Languages
Python 100%