ComfyUI Extension: ComfyUI-PS_Flatten_Image

Authored by ShmuelRonen

Created

Updated

7 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

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

Looking for a different extension?

Custom Nodes (1)

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

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more