floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

Save Layers Node for ComfyUI

52

Last updated
2024-07-31

This custom node for ComfyUI enables users to create layered images from input masks and save them in a PSD format. It is particularly beneficial for graphic design and image manipulation tasks that require precise layer management.

  • Processes single or multiple input images, creating distinct layers for each masked area.
  • Supports the inclusion of the original image as a separate layer and manages transparency through an alpha channel.
  • Automatically generates unique PSD filenames based on timestamps if not provided, streamlining file organization.

Context

This tool is a custom node designed for ComfyUI that facilitates the creation of image layers from input masks. Its primary purpose is to enhance image processing capabilities, allowing users to save layered compositions in the widely-used PSD format.

Key Features & Benefits

The LayersSaver node offers practical features such as handling single images or batches, applying masks to generate separate layers, and optional inclusion of the original image. These functionalities are essential for users who need to manipulate images with precision and flexibility, making it easier to organize and edit graphics in professional workflows.

Advanced Functionalities

The node provides advanced capabilities like alpha channel management, ensuring that transparency is preserved in the output layers. Additionally, it generates unique PSD filenames based on the current timestamp, which helps in maintaining an organized file structure without manual naming.

Practical Benefits

By utilizing this tool, users can significantly improve their workflow efficiency in ComfyUI. The ability to create and save layers directly into a PSD file enhances control over image editing, allowing for easier adjustments and refinements in graphic design projects.

Credits/Acknowledgments

This custom node was inspired by the work of jtydhr88/ComfyUI-LayerDivider, whose contributions laid the groundwork for this development. The project is licensed under the GPL-3.0 License, ensuring it remains open source for community use and improvement.