Extensions/ComfyUI-PS_Flatten_Image
ComfyUI Extension

ComfyUI-PS_Flatten_Image

A ComfyUI custom node that simulates Photoshop's 'Flatten Image' functionality.

By ShmuelRonen·Created about a year ago·Updated about a year ago· 7
ShmuelRonen/ComfyUI-PS_Flatten_Image
Nodes1
On cloudLocal install
CategoryPS Operations
Stars7
Updatedabout a year ago
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:

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