Azornes/Comfyui-LayerForge

ComfyUI's Photoshop-like layered canvas editor to your ComfyUI workflow. This node is perfect for complex compositing, inpainting, and outpainting, featuring multi-layer support, masking, blend modes, and precise transformations. Includes optional AI-powered background removal for streamlined image editing.

What it solves

LayerForge provides a layered canvas editor directly within ComfyUI, eliminating the need to switch between an AI generation tool and external image editing software for compositing, masking, and layering.

How it works

It functions as a ComfyUI node that introduces an interactive browser-based canvas. Users can import images as layers, manipulate them (scale, rotate, move), and paint masks. The node stores the canvas state in the browser's IndexedDB to ensure persistence across page reloads. It can also integrate with ComfyUI's output directory to automatically import generated images and clip them to custom polygonal shapes for precise inpainting. For background removal, it supports integration with matting models like BiRefNet and BRIA RMBG 2.0.

Who it’s for

Digital artists and AI creators using ComfyUI who need advanced image compositing, precise inpainting control via polygonal selection, and layered image management without leaving their workflow.

Highlights

  • Layered Compositing: Support for multiple image layers with 12 blend modes, adjustable opacity, and full transformation controls (scale, rotate, move).
  • Polygonal Inpainting: A lasso-style tool to define closed shapes for clipping generated images and applying shape masks.
  • Persistent State: Canvas data is saved in the browser's IndexedDB, preventing loss of work on refresh.
  • Integrated Matting: Built-in support for BiRefNet and BRIA RMBG 2.0 for automated background removal and foreground cutouts.
  • Masking Tools: Dedicated mask editing with adjustable brush size, strength, and softness, featuring a separate history from layer changes.

Related

  • Project
  • Project
  • Project
  • Project
  • Project