ComfyUI > Nodes > Comfyui-LayerForge

ComfyUI Extension: Comfyui-LayerForge

Repo Name

Comfyui-LayerForge

Author
Azornes (Account age: 3430 days)
Nodes
View all nodes(1)
Latest Updated
2025-11-13
Github Stars
0.25K

How to Install Comfyui-LayerForge

Install this extension via the ComfyUI Manager by searching for Comfyui-LayerForge
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui-LayerForge in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Comfyui-LayerForge Description

Comfyui-LayerForge enhances ComfyUI with a Photoshop-like layered canvas editor, ideal for complex compositing tasks. It supports multi-layer editing, masking, blend modes, precise transformations, and offers optional AI-powered background removal for efficient image editing.

Comfyui-LayerForge Introduction

Comfyui-LayerForge is an innovative extension designed to enhance your creative workflow within ComfyUI by providing a robust, layer-based editing experience similar to that of Photoshop. This extension allows you to work with multiple layers, apply masks, and use various blend modes, all within a single, integrated environment. Whether you're an AI artist looking to composite images, apply intricate masks, or perform precise transformations, Comfyui-LayerForge offers the tools you need to elevate your digital art projects. By integrating seamlessly with other nodes, it provides a comprehensive solution for complex image editing tasks, making it an essential tool for artists who want to push the boundaries of their creativity.

How Comfyui-LayerForge Works

At its core, Comfyui-LayerForge operates as a canvas node within ComfyUI, allowing you to manipulate images in a multi-layered environment. Imagine it as a digital workspace where each image or element you add becomes a separate layer that you can move, transform, and blend with others. This is akin to stacking transparent sheets on top of each other, where each sheet can be independently adjusted and then combined to create a cohesive final image. The extension uses a system of nodes to manage these layers, enabling you to apply transformations, masks, and blend modes with ease. This node-based approach allows for non-destructive editing, meaning you can experiment freely without permanently altering your original images.

Comfyui-LayerForge Features

  • Freeform Inpainting Area: This feature allows you to draw custom shapes directly on the canvas for inpainting, similar to using a polygonal lasso tool. It generates content that blends seamlessly with the existing image, eliminating the need for a brush.
  • Persistent & Stateful: Your work is automatically saved in the browser's IndexedDB, ensuring that your canvas state, including layers and their positions, is preserved even after a page reload.
  • Multi-Layer Editing: You can add, arrange, and manage multiple image layers, each with its own z-ordering, allowing for complex compositions.
  • Advanced Masking Tool: This tool provides a dedicated mode for creating masks with adjustable brush size, strength, and softness. Each mask has its own undo/redo history, giving you full control over your edits.
  • Full Transformation Controls: Move, scale, and rotate layers with precision using either the mouse or keyboard shortcuts.
  • Blend Modes & Opacity: Apply up to 12 common blend modes, such as Overlay and Multiply, and adjust the opacity of each layer individually through a context menu.
  • Comprehensive Undo/Redo: Enjoy full history support for both layer manipulations and mask drawing, allowing you to backtrack and refine your work as needed.
  • Seamless I/O: Easily import images by dragging and dropping files, copying and pasting from your clipboard, or importing the last generated image from your workflow with a single click.
  • AI-Powered Matting: Use the optional BiRefNet model for background removal, providing a clean cutout of any layer.
  • Efficient Memory Management: The extension includes an automatic garbage collection system to clean up unused image data, keeping your browser's storage footprint low.

Comfyui-LayerForge Models

Comfyui-LayerForge supports the BiRefNet model for AI-powered matting, which is used for automatic background removal. This model can be downloaded from Hugging Face or Google Drive and should be placed in the ComfyUI/models/BiRefNet/ directory. This feature is particularly useful when you need to isolate subjects from their backgrounds, allowing for more creative freedom in compositing.

Troubleshooting Comfyui-LayerForge

Common Issues and Solutions

  • Black Output or Node Not Working: If you encounter a black output, it may be due to the node_id not being auto-filled. To resolve this, enable node ID display in ComfyUI settings and manually enter the correct node_id as shown above the node.
  • Polygonal Lasso Tool Issues: If the polygonal lasso tool is not functioning as expected, ensure that the auto-refresh setting is enabled in LayerForge's settings. This ensures that new generation outputs update automatically in the canvas.

Frequently Asked Questions

  • Q: How do I ensure my work is saved?
  • A: Comfyui-LayerForge automatically saves your work to the browser's IndexedDB, preserving your canvas state even after a page reload.
  • Q: Can I use Comfyui-LayerForge with any model?
  • A: Yes, LayerForge is designed to work with any ComfyUI-compatible model, outputting standard image and mask data.

Learn More about Comfyui-LayerForge

To further explore the capabilities of Comfyui-LayerForge, you can access additional resources such as tutorials and community forums. These platforms provide valuable insights and support, helping you make the most of this powerful extension. For more detailed guidance, consider visiting the ComfyUI GitHub repository or joining the ComfyUI Discord community where you can connect with other AI artists and developers.

Comfyui-LayerForge Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.