ComfyUI > Nodes > Basic data handling > save IMAGE to file

ComfyUI Node: save IMAGE to file

Class Name

Basic data handling: PathSaveImageRGB

Category
Basic/Path
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

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

PathSaveImageRGB saves RGB images to a file path, omitting alpha channels for broad compatibility.

save IMAGE to file:

The PathSaveImageRGB node is designed to facilitate the saving of RGB images to a specified file path. This node is particularly useful for AI artists who need to store their generated images in a file format that retains the color information without any alpha channel. By focusing solely on the RGB channels, this node ensures that the saved images are compatible with a wide range of applications and platforms that do not require transparency. The primary goal of this node is to provide a straightforward and efficient method for saving images, making it an essential tool for managing and organizing digital artwork.

save IMAGE to file Input Parameters:

path

The path parameter specifies the file path where the RGB image will be saved. It is crucial to provide a valid and accessible path to ensure the image is stored correctly. The path should include the desired file name and extension, typically .png or .jpg, depending on the format you wish to save the image in. There are no explicit minimum or maximum values for this parameter, but it must be a valid string representing a file path on your system. The default value is an empty string, which means you need to specify a path for the node to function properly.

image

The image parameter represents the RGB image data that you want to save. This data is typically in the form of a tensor, which contains the pixel values of the image. The image tensor should be formatted correctly to ensure that the colors are accurately represented when saved. There are no specific minimum or maximum values for this parameter, but it must be a valid tensor containing RGB data. The node will process this tensor and save it to the specified path.

save IMAGE to file Output Parameters:

success

The success parameter is a boolean value that indicates whether the image was successfully saved to the specified path. A value of True means the operation was successful, while False indicates that there was an issue during the saving process. This output is crucial for confirming that your image has been stored correctly and allows you to handle any errors that may occur.

save IMAGE to file Usage Tips:

  • Ensure that the file path specified in the path parameter is valid and accessible to avoid errors during the saving process.
  • Use the .png format for lossless image quality, especially if you plan to perform further editing on the saved image.
  • Verify the success output to confirm that the image has been saved correctly, and take corrective action if it returns False.

save IMAGE to file Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified file path does not exist or is inaccessible.
  • Solution: Double-check the file path for accuracy and ensure that the directory exists and is writable.

PermissionError

  • Explanation: This error indicates that the program does not have the necessary permissions to write to the specified file path.
  • Solution: Adjust the file permissions or choose a different path where the program has write access.

InvalidImageFormatError

  • Explanation: This error arises when the image tensor provided is not in a valid RGB format.
  • Solution: Ensure that the image tensor is correctly formatted as an RGB image before attempting to save it.

save IMAGE to file Related Nodes

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

save IMAGE to file