ComfyUI > Nodes > Bjornulf_custom_nodes > πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder

ComfyUI Node: πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder

Class Name

Bjornulf_SaveImageToFolder

Category
Bjornulf
Author
justUmen (Account age: 3046days)
Extension
Bjornulf_custom_nodes
Latest Updated
2025-02-28
Github Stars
0.2K

How to Install Bjornulf_custom_nodes

Install this extension via the ComfyUI Manager by searching for Bjornulf_custom_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Bjornulf_custom_nodes 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

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Description

Facilitates saving images to specified folder with metadata, auto directory creation, and file name incrementing for organization.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder:

The Bjornulf_SaveImageToFolder node is designed to facilitate the process of saving images to a specified folder on your system. This node is particularly useful for AI artists who generate multiple images and need an organized way to store them with additional metadata. By automatically creating a directory if it doesn't exist and incrementing file names to avoid overwriting, it ensures that your images are saved systematically. The node also allows you to embed metadata such as prompts and additional information into the image files, which can be beneficial for tracking the creative process or for future reference. This functionality is crucial for maintaining an organized workflow and ensuring that all generated content is easily accessible and well-documented.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Input Parameters:

images

The images parameter expects a list of images that you want to save. These images are typically generated by your AI model and are in a format that can be processed by the node. The images are converted to a format suitable for saving as PNG files, ensuring compatibility and quality retention.

folder_name

The folder_name parameter specifies the name of the folder where the images will be saved. If the folder does not already exist, it will be created automatically. This parameter allows you to organize your images into different directories based on your project needs or preferences. The default value is "my_folder", but you can customize it to suit your organizational structure.

prompt

The prompt parameter is an optional input that allows you to include the text prompt used to generate the images as metadata within the saved PNG files. This can be particularly useful for keeping track of the creative input that led to the image generation, aiding in reproducibility and documentation.

extra_pnginfo

The extra_pnginfo parameter is an optional dictionary that lets you add additional metadata to the saved images. This can include any extra information you deem necessary, such as model settings or other contextual data, providing a richer dataset for future reference or analysis.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Output Parameters:

ui

The ui output parameter provides a structured response containing the filenames of the saved images. This output is formatted to be easily integrated into user interfaces, allowing you to quickly access and display the saved images. It includes the file paths and indicates that these are output images, streamlining the process of managing and viewing your saved content.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Usage Tips:

  • Ensure that the folder_name is descriptive and relevant to the images being saved to maintain an organized file structure.
  • Utilize the prompt and extra_pnginfo parameters to embed useful metadata, which can be invaluable for tracking the creative process and for future reference.
  • Regularly check the output directory to ensure that images are being saved correctly and that file names are incrementing as expected.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Common Errors and Solutions:

"Permission denied"

  • Explanation: This error occurs when the node does not have the necessary permissions to create or write to the specified directory.
  • Solution: Ensure that the directory path is correct and that the application has the necessary permissions to write to the location. You may need to adjust your system's file permissions or run the application with elevated privileges.

"Invalid image format"

  • Explanation: This error indicates that the images provided are not in a format that can be processed by the node.
  • Solution: Verify that the images are in a compatible format, such as a tensor that can be converted to a PNG. Ensure that the images are correctly pre-processed before being passed to the node.

πŸ’ΎπŸ–ΌπŸ“ Save Image(s) to a folder Related Nodes

Go back to the extension to check out more related nodes.
Bjornulf_custom_nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.