ComfyUI-PS_Flatten_Image

ComfyUI-PS_Flatten_Image
★ 7

图像合并图层扁平化PS风格操作ComfyUI节点
模拟Photoshop的Flatten Image功能,将多张输入图像合并为一张扁平图像,便于后续处理与导出。
💡 将多张图像或图层合并为单张用于导出或后续处理。
🍴 1 Forks💻 Python🔄 2025-04-02
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8f9eee5e2cdb
Buy Me A Coffee
image
📄 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:

[](https://buymeacoffee.com/shmuelronen)

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
  • License

    MIT License