An elegant, all-in-one, high-performance image workflow node for ComfyUI. Load, crop, paint masks, correct colors with professional Camera Raw tools, and scale images seamlessly in a single unified interface.
- π§° Independent Toolbox & Context Menu
- βοΈ Advanced Editor Workspaces
- π Load Image AIO Node & Inline Modes
- π οΈ Node Settings & Customization
- πΎ Save Paths & Model Downloads
β οΈ Limitations- π Installation
- π Release Changelog (v2.5)
In v2.5, you can run all advanced editors on any node that produces or accepts an image. You are no longer restricted to the Load Image AIO node!
- Floating Node Toolbox: Appears directly above any compatible node (e.g. Load Image, Preview Image, Save Image) providing quick access buttons to Camera Raw, Mask Editor, and Crop Editor.
- Right-Click Context Menu: Integrates options directly into ComfyUI's native context menu:
- trx adv. camera raw
- trx adv. mask editor
- trx adv. crop/pad/outpaint
- Copy Image / Paste Image / Copy Mask / Paste Mask
- Mask Clipboard: Instantly copy drawn masks from one node and paste them onto another node across the workflow.
1120x654.mp4
A professional Lightroom-style workspace with advanced adjustment sliders, HSL panel, and color curves.
| Basic Adjustments & pixelize & sketch | HSL Colors & Curves |
|---|---|
![]() |
![]() |
- Liquid-Smooth Previews: requestAnimationFrame-throttled cooperative rendering updates preview canvas instantly as you drag sliders.
- Layers Panel: Create multiple color correction layers in the sidebar, operating either in overlay
filtermode or compositeimagemode. - Custom Presets: Save your favorite grading styles, mark them as favorites, and quickly import/export styles using preset codes.
- HSL Color Picker (Finger Icon): Click and drag horizontally over the image to adjust the saturation of that specific color range in real-time.
- Curve Graph: Precise curve controls for RGB, Red, Green, and Blue channels.
- Double-click Curve Grid: Resets the current channel to linear.
- Right-click Curve Point: Deletes the selected point.
- Double-click Slider / Label: Resets the slider to its default value.
- Mouse Wheel / Middle Click: Zoom and pan the preview image.
- Esc: Close the workspace without saving.
A powerful editing space combining traditional brushes with advanced neural network models.
| SAM AI Segmentation | SAM PRO Viewport Focus | RMBG Background Removal |
|---|---|---|
![]() |
![]() |
![]() |
- Segment Anything (SAM): Select a model and click on an object to segment it.
- Models: SAM 2.1 Hiera Tiny, SAM 2.1 Hiera Large, and SAM 3.
- SAM PRO Mode: Dynamically crops the attention window to your zoomed viewport (dashed blue border). Focuses SAM on fine details while ignoring background clutter.
- GroundingDINO (Text-to-Mask): Automatically generate masks by typing queries (e.g. "sunglasses", "jacket").
- Remove Background (RMBG): Isolate subjects instantly using RMBG models (InspyreNet, BEN2, BiRefNet).
- Alpha Matting: Apply refined edge processing for soft anti-aliased transitions.
- Mask Post-processing: Adjust Dilation (Grow), Blur, and output opacity dynamically.
- Alt + Right Click + Drag: Interactively adjust brush size (drag horizontally) and hardness (drag vertically).
- Right Click (Hold & Drag): Temporary eraser brush.
- Ctrl + Left Click: Smart flood fill.
- Shift + Left Click: Draw straight lines (drag with Shift to snap to axes).
- Mouse Wheel / Middle Click: Zoom and pan the canvas.
- Esc: Close the editor.
For resizing, scaling, cropping, and padding images.
| Rotation, Mirroring & Outpaint Swatches | Interactive Cropping Board |
|---|---|
![]() |
![]() |
- Symmetric Scaling: Symmetrically pad or crop images from all edges.
- Auto-Mask Outpaint: Automatically creates a mask for newly padded outpaint regions.
- Resolution Snapping: Snap dimensions to clean multiples (
x2,x4,x8,x32,x64) for model compatibility. - Quick Alignment: Presets to center, align left, top, right, bottom.
- Rotation & Mirroring: Mirror horizontally/vertically or rotate CW/CCW.
- Shift + Drag Corner: Forces a locked aspect ratio.
- Alt + Drag Corner: Symmetrical scale from the center point.
- Mouse Wheel / Middle Click: Zoom and pan the workspace.
- Esc: Exit editor.
The Load Image AIO node is a unified workspace designed to handle your entire input prep pipeline. Instead of linking multiple separate nodes, you can switch between Preview, Filter, Mask, and Resize tabs to apply adjustments sequentially inside the node.
Used for clean, distraction-free previewing of your image inside the node. No bars or sliders are shown.
Used for quick adjustment parameters inside the node interface.
| Filter Adjustments | Active Settings |
|---|---|
![]() |
![]() |
Used for quick mask drawing and previewing inside the node interface.
| Inline Brush Drawing | Opacity & Color Selector Overlay |
|---|---|
![]() |
![]() |
Used for crop inputs, padding settings, and snap limits inside the node interface.
| basic resizing | scale by option | Outpaint Options | Crop with interactive panel |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
You can fully customize the behavior and visual aesthetics of ComfyUI-TrixLoader via ComfyUI's native Settings Dialog:
| Custom Settings Panel | Custom Node Style |
|---|---|
![]() |
![]() |
- Potato PC Mode: Disables editor transitions/animations and limits canvas previews to
512px(defaultfalserenders sharp1200pxcanvas). - Custom Node Colors: Re-color AIO node background, text, active tabs, toolbars, and buttons using color pickers.
- Toolbox Configuration: Enable or disable the toolbox for specific nodes, change toolbox positions, and hide unwanted items.
- Save Path: Processed images and intermediate step images are saved in
ComfyUI/input/aio_input/(e.g.aio_wired_*.pngortrix_edited_*.png). - Model Downloads:
- SAM models: Saved to
ComfyUI/models/sam2/or HuggingFace cache. - RMBG / GroundingDINO: Cached inside HuggingFace cache folders.
- Important note on first runs: On the first execution of SAM 3 or other models, the download may halt at 100%. This is expected, as python compiles dependencies and initializes Triton mocks. Please check your console terminal for updates.
- SAM models: Saved to
- Non-reversible edits (Save to Node): You cannot undo crop or filters after clicking "Save to Node" because it modifies the base image file inside the workflow, which prevents loop duplicates in the input directory.
- Crop Snapping: Symmetrical smart snapping in CPO editor helps clip empty pad borders, but operates with close approximations and might shave off a few edge pixels.
- Photoshop Camera Raw Match: While parameters are optimized to ~95% matched accuracy to Photoshop, complex curve math and filter stacks behave slightly differently than Adobe's native desktop engine.
- SAM 3 Precision: SAM 3 works best in prompt-text mode; point selection can occasionally capture surrounding components. Use SAM PRO to crop attention boundaries to the zoom box.
- Go to
ComfyUI/custom_nodes/ - Clone this repository:
git clone https://github.com/trx7111/ComfyUI-TrixLoader.git
- Restart ComfyUI.
- Option A (Registry Search):
- Open ComfyUI Manager -> click Custom Nodes Manager.
- Search for
trixloaderorComfyUI-TrixLoader. - Click Install and restart ComfyUI.
- Option B (Via Git URL):
- Open ComfyUI Manager -> click Install via Git URL.
- Paste the URL:
https://github.com/trx7111/ComfyUI-TrixLoader - Click Install and restart ComfyUI.
- Toolbox & Context Menu Independence: Run Camera Raw, Crop Editor, and Mask Editor on any image-producing node. Fully independent of the AIO node.
- Mask Clipboard: Added Copy Mask & Paste Mask support between nodes.
- SAM Compatibility: Advanced Mask Editor masks are fully compatible with ComfyUI's native mask editor.
- Logical Groupings: Sliders are structured into Basic, HSL, Curves, and Details panels.
- Custom Presets: Save, favorite, and share preset codes.
- Layers Panel: Overlay multiple color correction layers (Filter or Composite Image).
- UI Customizer: Fully customize toolbox configurations and node element colors.
- Potato PC Mode: Settings option to limit canvas previews and turn off editor animations.
- Better Execution Flow: Applying both Filter and Resize modes now correctly processes filters first and crops/pads second, ensuring clean border fills.
- Fixed performance lag and micro-freezes.
Created by Trix for the StableDif & AINetSD Group community.


















