ComfyUI Extension: ComfyUI-XJNodes
A modular collection of custom nodes for ComfyUI, organized by data type for easy navigation and maintenance.
Custom Nodes (0)
README
ComfyUI-XJNodes
A modular collection of custom nodes for ComfyUI, organized by data type for easy navigation and maintenance.
Note: This repository is primarily for personal use and experimentation.
Available Nodes
This package provides custom nodes organized into four main categories:
Image Nodes
Loaders:
- Load Images From Dir Batch - Load multiple images from a directory as a batch, with options for image cap, start index, and recursive loading
- Load Images From Dir List - Load images from a directory as a list (each image separate), supports recursive directory traversal
- Load Image With Metadata - Load image from input/output directories with full metadata extraction (dimensions, format, PNG text chunks, workflow data)
- Load Image By Path - Simple loader that takes directory and filename as string inputs
Savers:
- Save Image With Metadata - Save images with embedded metadata, workflow, and custom text fields
Transforms:
- Image Transform - Apply transformations to images with specified parameters
- Image Random Transform - Apply random transformations to images for data augmentation
Scaling:
- Image Scale Calc - Calculate scaling dimensions for images
- Image Scale Megapixel - Scale images to target megapixel resolution
Batch:
- Image Grid - Arrange multiple images into a grid layout
- One Image From Batch - Extract a single image from a batch by index
- Image List Filter - Filter images from a list based on criteria
- Random Images From Batch - Randomly select images from a batch
Text Nodes
Loaders:
- Random Text From List - Select text from a numbered list widget (fixed or random selection)
- Random Text From File - Select text from .txt or .md files in input directory (supports comments with #, list items with -)
- Text List From File - Load all valid lines from a text file as a list
Info:
- Text File Info - Get information about text files (line count, etc.)
JSON:
- JSON Extractor - Extract values from JSON data structures
Primitives
Adapters:
- Scheduler Adapter - Adapter for ComfyUI scheduler compatibility
- Sampler Adapter - Adapter for ComfyUI sampler compatibility
- StringPass - Simple string passthrough utility
Integers:
- Int Offset - Add offset to integer values
- Integer Increment - Increment integer by a value
- Integer Decrement - Decrement integer by a value
Floats:
- Float Range List - Generate a list of float values within a range
Specialized
SUPIR:
- SUPIR Parameters - Helper node for SUPIR upscaling workflow parameters
Installation
- Navigate to your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/
- Clone this repository:
git clone https://github.com/yourusername/ComfyUI-XJNodes.git
- Restart ComfyUI
Requirements
See requirements.txt for any additional dependencies.
License
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.