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

ComfyUI Node: save IMAGE+MASK to file

Class Name

Basic data handling: PathSaveImageRGBA

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+MASK to file Description

PathSaveImageRGBA saves images with alpha masks to specified paths, preserving transparency.

save IMAGE+MASK to file:

The PathSaveImageRGBA node is designed to facilitate the saving of images along with their associated alpha masks to a specified file path. This node is particularly useful for AI artists who need to preserve transparency information in their images, as it ensures that both the RGB channels and the alpha channel are stored together. By supporting formats that accommodate transparency, such as PNG, this node helps maintain the integrity of your artwork when saving it to disk. The node automatically adjusts the file format if an incompatible one is chosen, ensuring that the transparency data is not lost. This functionality is crucial for tasks that require precise control over image layers and transparency, making it an essential tool for artists working with complex compositions.

save IMAGE+MASK to file Input Parameters:

path

The path parameter specifies the file path where the image and its mask will be saved. It is crucial to provide a valid path to ensure the image is stored correctly. If the path does not include a file extension or if the extension does not match the specified format, the node will automatically append the appropriate extension. This parameter does not have a default value and must be specified by the user.

format

The format parameter determines the file format in which the image will be saved. While you can specify formats like "jpg" or "jpeg", the node will default to "png" if transparency is detected, as JPEG does not support alpha channels. This ensures that the transparency information is preserved. The default format is "png" when transparency is involved.

save IMAGE+MASK to file Output Parameters:

success

The success parameter is a boolean value that indicates whether the image and mask were successfully saved to the specified path. A value of True signifies a successful operation, while False indicates a failure, which could be due to an invalid path or other issues during the saving process.

save IMAGE+MASK to file Usage Tips:

  • Always specify a valid file path to ensure your image and mask are saved correctly. If unsure about the format, rely on the default "png" to preserve transparency.
  • When working with images that require transparency, avoid using JPEG format as it does not support alpha channels. The node will automatically switch to PNG if transparency is detected.

save IMAGE+MASK to file Common Errors and Solutions:

Basic data handling: Save failed - no path specified

  • Explanation: This error occurs when the path parameter is not provided or is empty.
  • Solution: Ensure that you specify a valid file path where the image and mask should be saved.

Basic data handling: JPEG format doesn't support transparency. Using PNG instead.

  • Explanation: This message indicates that the JPEG format was selected, but since it does not support transparency, the node switched to PNG to preserve the alpha channel.
  • Solution: If transparency is required, continue using PNG. If not, you can ignore this message as the node handles the format change automatically.

save IMAGE+MASK 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+MASK to file