Skip to main content

Save Image With Alpha

KJNodes/imageOutput Node
SaveImageWithAlpha

Saves an image and mask as .PNG with the mask as the alpha channel.

Example

JSON Example
{
  "class_type": "SaveImageWithAlpha",
  "inputs": {
    "images": [
      "node_id",
      0
    ],
    "mask": [
      "node_id",
      0
    ],
    "filename_prefix": "ComfyUI"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
imagesIMAGErequired--
maskMASKrequired--
filename_prefixSTRINGrequired-"ComfyUI"

Outputs

This node has no outputs.

Was this page helpful?