ComfyUI > Nodes > ComfyUI-Only > Load Images from Archive

ComfyUI Node: Load Images from Archive

Class Name

ArchiveImageLoader

Category
only/Image
Author
eric183 (Account age: 4090days)
Extension
ComfyUI-Only
Latest Updated
2025-08-23
Github Stars
0.07K

How to Install ComfyUI-Only

Install this extension via the ComfyUI Manager by searching for ComfyUI-Only
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Only in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Load Images from Archive Description

Extracts and loads images from ZIP/7z archives into ComfyUI, automating batch processing.

Load Images from Archive:

The ArchiveImageLoader node is designed to streamline the process of extracting and loading images from compressed archive files, specifically ZIP and 7z formats, into the ComfyUI environment. This node is particularly beneficial for AI artists who need to handle large collections of images stored in compressed formats, as it automates the extraction and loading process, saving time and effort. By extracting the contents of an archive into a designated directory and converting the images into a batch tensor, the node facilitates seamless integration with image processing workflows. Its ability to handle multiple image formats and sort them based on user preferences enhances its utility, making it an essential tool for efficiently managing and utilizing image datasets in creative projects.

Load Images from Archive Input Parameters:

archive_file

The archive_file parameter is a required input that specifies the path to the compressed archive file you wish to extract and load images from. This parameter is crucial as it determines the source of the images to be processed. The file should be in either ZIP or 7z format, as these are the supported types. The default value is an empty string, indicating no file is selected. Providing a valid archive file path is essential for the node to function correctly, as it will extract the contents to a designated directory for further processing.

sort_method

The sort_method parameter is an optional input that allows you to specify how the extracted images should be sorted before being loaded. It offers three options: "None," "alphabetical," and "reverse_alphabetical." Choosing "None" will load the images in the order they are extracted, while "alphabetical" and "reverse_alphabetical" will sort the images in ascending or descending order based on their filenames, respectively. This parameter helps organize the images according to your preference, which can be particularly useful when the order of images is important for your workflow.

Load Images from Archive Output Parameters:

images

The images output parameter provides a batch tensor containing all the images extracted from the archive. This tensor is crucial for further image processing tasks, as it allows you to work with the images in a format compatible with various machine learning and image processing frameworks. The batch tensor is created by stacking individual image tensors, ensuring that all images are ready for immediate use in your projects.

directory_path

The directory_path output parameter returns the path to the directory where the archive's contents have been extracted. This path is useful for verifying the extraction process and accessing the images directly if needed. It provides a reference to the location of the images on your filesystem, allowing you to manage and organize your files effectively.

Load Images from Archive Usage Tips:

  • Ensure that the archive file is in ZIP or 7z format, as these are the only supported types. If you have a RAR file, consider converting it to a supported format before using this node.
  • Use the sort_method parameter to organize your images in a specific order, which can be helpful if the sequence of images is important for your project.

Load Images from Archive Common Errors and Solutions:

Archive file not found: <archive_path>

  • Explanation: This error occurs when the specified archive file cannot be located in the temporary directory.
  • Solution: Verify that the archive file has been correctly uploaded to the temporary directory and that the file path is accurate.

Unsupported archive format for file: <archive_file>

  • Explanation: This error indicates that the provided archive file is not in a supported format (ZIP or 7z).
  • Solution: Convert the archive file to a ZIP or 7z format and try again.

Failed to extract archive: <error_message>

  • Explanation: This error signifies a failure during the extraction process, possibly due to a corrupted archive or insufficient permissions.
  • Solution: Check the integrity of the archive file and ensure that the extraction directory has the necessary write permissions.

Load Images from Archive Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Only
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.