Skip to content

Latentnaut/ComfyUI-Multi-Image-Loader

Repository files navigation

ComfyUI Multi-Image Loader 🖼️

ComfyUI Multi-Image Loader is a specialized node extension that enables seamless, interactive batch image loading directly within the ComfyUI interface. Say goodbye to manual folder paths and file-system navigation—just drag, drop, and process.


🚀 Features

  • Interactive Drag & Drop: Upload multiple images directly into the node widget from your local machine.
  • No Folder Required: Bypasses the need for pre-defined input folders; images are handled via a dedicated internal upload route.
  • Unified Batch Tensor: Automatically combines all uploaded images into a single IMAGE batch tensor [B, H, W, C].
  • Smart Resizing: Includes a resize_to_first mode to automatically harmonize inconsistent image dimensions based on the first loaded file.
  • Persistent Storage: The list of uploaded images is saved directly in your ComfyUI workflow JSON for easy multi-session work.
  • Visual Previews: (Coming Soon/Frontend) Interactive thumbnail previews for managed assets.

🛠️ Components

  1. MultiImageLoader Node: The core backend node responsible for tensor stacking and resizing.
  2. JavaScript Extension: Injects a custom drag-and-drop / file-picker widget into the ComfyUI graph.

📦 Installation

1. Manual installation

  1. Navigate to your ComfyUI/custom_nodes/ folder.
  2. Clone the repository:
    git clone https://github.com/Latentnaut/ComfyUI-Multi-Image-Loader.git
  3. Restart ComfyUI and refresh your browser.

📖 Usage

  1. Add the Load Multiple Images 🖼️ node (found under image/loaders).
  2. Click the widget or drag multiple files directly onto the node.
  3. Choose your resize_mode:
    • resize_to_first: Resizes all images to match the dimensions of the first one in the batch.
    • none: Attempt to stack (will fail if dimensions differ).
  4. Connect the output image_batch to any node that accepts batch image tensors (e.g., VAE Encode, Upscalers).

🤝 Contributing

Feedback and contributions are welcome! If you encounter issues or have feature requests for the UI, please open an issue on the repository.

Created by Latentnaut

About

Effortless ComfyUI node for multi-image loading via drag-and-drop. Direct UI uploads bypass folder paths, producing a unified image batch tensor. Features smart resizing to the first image's dimensions, thumbnail previews, and persistent workflow storage. Streamline your batch processing with a fast, interactive multi-image loader.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors