floyo logo
Powered by
ThinkDiffusion
Pricing
Wan 2.7 is now live. Check it out 👉🏼
floyo logo
Powered by
ThinkDiffusion
Pricing
Wan 2.7 is now live. Check it out 👉🏼
Last updated
2026-03-17

This tool enhances the image loading capabilities within ComfyUI by adding filename output and the ability to load multiple images from a folder. It provides advanced options for saving images with custom filenames, making it a valuable asset for users needing more control over their image processing workflows.

  • Extends ComfyUI's functionality with enhanced image loading and saving features.
  • Supports batch processing and filename tracking, improving efficiency in managing multiple images.
  • Offers robust error handling to ensure smooth operation even with corrupted files.

Context

This tool, known as ComfyUI LoadImageWithFilename, is a custom extension designed to enhance the image loading and saving functions of ComfyUI. Its primary goal is to provide users with more control over how images are loaded and saved, including the ability to retrieve filenames and handle multiple images from specified directories.

Key Features & Benefits

The tool includes several practical features that significantly improve the user experience. The LoadImageWithFilename node allows users to load images while also retrieving the filenames as string outputs, which can be crucial for tracking and referencing images in workflows. The LoadImageFolder functionality enables batch processing by loading all images from a specified folder and returning them as a single tensor, along with a list of filenames, which streamlines the workflow for users dealing with large sets of images.

Advanced Functionalities

In addition to basic loading and saving functions, the tool offers advanced capabilities such as custom naming for saved images. Users can provide specific filenames or use a prefix for default naming, ensuring that images are organized according to their preferences. The SaveImageWithFilename node can handle multiple images simultaneously, making it easier to manage outputs when working with batches.

Practical Benefits

This tool improves workflow efficiency by allowing users to load and save images with greater flexibility and control. The ability to track filenames and process images in batches reduces the time and effort required for file management, while robust error handling ensures that users are informed of any issues with image loading, allowing for smoother operations within ComfyUI.

Credits/Acknowledgments

This tool is based on the original ComfyUI LoadImage and SaveImage nodes, with contributions from the ComfyUI community. The repository is maintained under the open-source license, allowing users to modify and share the tool as needed.

Inner Nodes

LoadImageWithFilename