ComfyUI > Nodes > ComfyUI_Lam > 仅保存图片

ComfyUI Node: 仅保存图片

Class Name

LamSaveOnly

Category
image
Author
Lam Yan (Account age: 3065days)
Extension
ComfyUI_Lam
Latest Updated
2025-03-06
Github Stars
0.02K

How to Install ComfyUI_Lam

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

仅保存图片 Description

Streamline image saving process, automate batch saving with unique filenames and customizable prefixes in ComfyUI.

仅保存图片:

The LamSaveOnly node is designed to streamline the process of saving images generated within the ComfyUI environment. Its primary function is to take a batch of images and save them to a specified output directory, ensuring that each image is stored with a unique filename. This node is particularly beneficial for users who need to manage and organize large volumes of images efficiently, as it automates the saving process and appends a customizable prefix to filenames for easy identification. By focusing solely on saving images, LamSaveOnly simplifies workflows and reduces the manual effort required to handle image outputs, making it an essential tool for AI artists who frequently work with image generation tasks.

仅保存图片 Input Parameters:

images

The images parameter is a required input that accepts a batch of images to be saved. This parameter is crucial as it determines the content that will be processed and stored by the node. The images should be in a format compatible with the node's processing capabilities, typically as tensors or arrays. There are no specific minimum or maximum values for this parameter, but it is essential that the images are correctly formatted to ensure successful execution.

filename_prefix

The filename_prefix parameter allows you to specify a string that will be appended to the beginning of each saved image's filename. This is particularly useful for organizing and categorizing images, as it provides a way to easily identify the source or purpose of the images. The default value for this parameter is "ComfyUI", but it can be customized to suit your needs. There are no strict limits on the length or content of the prefix, but it should be chosen carefully to avoid conflicts with existing filenames.

仅保存图片 Output Parameters:

IMAGE

The IMAGE output parameter represents the batch of images that have been processed and saved by the node. This output is essentially a confirmation that the images have been successfully stored in the specified directory. The importance of this output lies in its role as a feedback mechanism, allowing you to verify that the saving process has been completed without errors. The images are returned in the same format as they were input, ensuring consistency and reliability in the workflow.

仅保存图片 Usage Tips:

  • To ensure that your images are easily identifiable, customize the filename_prefix to include relevant information such as project names or dates. This will help you quickly locate and manage your saved images.
  • If you are working with large batches of images, consider organizing them into subfolders within the output directory. This can be achieved by modifying the output directory path or using a dynamic prefix that includes subfolder information.

仅保存图片 Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified output directory does not exist or is inaccessible.
  • Solution: Verify that the output directory path is correct and that you have the necessary permissions to write to it. Create the directory if it does not exist.

PermissionError

  • Explanation: This error indicates that the node does not have the required permissions to save files in the specified directory.
  • Solution: Check the directory permissions and ensure that the application has write access. You may need to adjust the permissions or choose a different directory.

ValueError: Invalid Image Format

  • Explanation: This error arises when the input images are not in a compatible format for processing and saving.
  • Solution: Ensure that the images are correctly formatted as tensors or arrays and that they meet the node's requirements for processing. Convert the images to the appropriate format if necessary.

仅保存图片 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Lam
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.