ComfyUI > Nodes > Bmad Nodes > Save Image (api)

ComfyUI Node: Save Image (api)

Class Name

Save Image (api)

Category
Bmad/api
Author
bmad4ever (Account age: 3591days)
Extension
Bmad Nodes
Latest Updated
2024-08-02
Github Stars
0.05K

How to Install Bmad Nodes

Install this extension via the ComfyUI Manager by searching for Bmad Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Bmad 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save Image (api) Description

Save images without metadata, unique hexdigest filenames, essential for artists managing output efficiently.

Save Image (api):

The Save Image (api) node is designed to save images generated or processed within your AI art workflow without storing any metadata. This node is particularly useful for ensuring that the saved images are free from any additional information that might be embedded in the file, such as prompts or extra metadata. By using a hexdigest as the filename, it ensures that each image is uniquely named, preventing any potential overwriting of files. This node is essential for artists who need to manage and organize their output images efficiently, ensuring that each image is saved with a unique identifier and without any unnecessary metadata.

Save Image (api) Input Parameters:

images

This parameter expects a list of images that you want to save. Each image in the list should be in a format that can be processed by the node, typically as a tensor or array. The images parameter is crucial as it directly determines the content that will be saved to your output directory. There are no specific minimum or maximum values for this parameter, but it must be a valid list of images.

resource_name

This parameter is a string that specifies the base name for the saved image files. By default, it is set to "image". This name will be used as a prefix for the filenames of the saved images, followed by a unique hexdigest and a counter to ensure each file is uniquely named. The resource_name helps in organizing and identifying the saved images based on the given name.

prompt (hidden)

This hidden parameter can store the prompt used to generate the image. Although it is not saved with the image, it can be useful for internal processing or future extensions where metadata might be required.

extra_pnginfo (hidden)

This hidden parameter can store additional metadata in the form of key-value pairs. Similar to the prompt, it is not saved with the image but can be used for internal purposes or future enhancements.

Save Image (api) Output Parameters:

TASK_DONE

This output parameter indicates that the task of saving the images has been completed. It serves as a signal to the workflow that the images have been successfully saved and that subsequent nodes can proceed with their operations. The TASK_DONE output ensures that the workflow can continue smoothly without interruptions.

Save Image (api) Usage Tips:

  • Ensure that the images parameter is a valid list of images in the correct format to avoid any errors during the saving process.
  • Use a meaningful resource_name to easily identify and organize your saved images, especially when dealing with large batches.
  • Although the prompt and extra_pnginfo parameters are hidden, consider how you might use them for internal processing or future enhancements to your workflow.

Save Image (api) Common Errors and Solutions:

Invalid image format

  • Explanation: The images provided are not in a valid format that can be processed by the node.
  • Solution: Ensure that the images are in the correct format, typically as tensors or arrays, before passing them to the node.

Output directory not found

  • Explanation: The specified output directory does not exist or is not accessible.
  • Solution: Verify that the output directory exists and that you have the necessary permissions to write to it.

Filename conflict

  • Explanation: There is a conflict with the filenames, potentially causing overwriting of existing files.
  • Solution: Ensure that the resource_name is unique or use the default naming convention to avoid conflicts.

Save Image (api) Related Nodes

Go back to the extension to check out more related nodes.
Bmad Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.