Image Load RGBA
Load a PNG and get its alpha channel as a mask
- IMAGE
- MASK
The thing that makes this node worth knowing: it loads an image from a path and pulls the alpha channel out as a MASK. Most load nodes give you just the RGB and throw the transparency away. JWImageLoadRGBA keeps it - so a transparent PNG becomes an image plus a ready-to-use mask in one node, no separate alpha-extraction step.
That's genuinely useful for inpainting and compositing. If you've cut out a subject in an image editor and saved it as a transparent PNG, the alpha is your mask. Load it here and you get the picture on one output and the cutout shape on the other, wired straight into an inpaint pipeline or a paste/composite. Skipping the "load, then split channels, then convert to mask" dance is the whole point.
How it works
It reads the file at the given path as RGBA, hands the color as an IMAGE, and converts the alpha channel into a MASK. Fully opaque pixels read as one end of the mask, fully transparent as the other. If the file has no alpha channel, there's nothing to extract - see the troubleshooting note below.
The inputs and outputs that matter
path(STRING) - the file path to load, default./image.png. This is a filesystem path on the machine running ComfyUI, not an upload widget.- Outputs:
IMAGE- the RGB image.MASK- the alpha channel as a mask, ready for inpainting, compositing, or a "set latent noise mask" step.
How to install it
Part of jamesWalker55/comfyui-various, a pack of small utility nodes.
- ComfyUI Manager: search "Various ComfyUI Nodes by Type", install, restart. Red node in a downloaded workflow? Install Missing Custom Nodes.
- Manually:
Restart afterward. No models, no dependencies.cd ComfyUI/custom_nodes git clone https://github.com/jamesWalker55/comfyui-various
Under the jamesWalker55 category after restart.
Common issues
- The mask is empty or solid. No alpha channel in the file means no mask to extract - a flat JPEG or an opaque PNG gives you a uniform mask. Make sure the source is actually a transparent PNG (or another format that carries alpha).
- It loads by path, not by upload. This is the big one on a hosted or cloud setup. Unlike the standard Load Image node with its upload button, JWImageLoadRGBA reads a path on the server's filesystem. On a serverless or shared host you may not have a persistent local disk to point it at, and a relative path like
./image.pngresolves against wherever ComfyUI is running - not your computer. For interactive uploads, the built-in Load Image node is usually the better fit; use this when the file genuinely lives on the machine (a pipeline output, a mounted volume). - File not found. Check the path is correct and readable from ComfyUI's working directory. Relative paths are the usual trap - try an absolute path to rule it out.
- Node is red / missing. The pack isn't installed. Install via Manager or clone the repo, then restart.
If you don't need the mask, a plain RGB loader is simpler. Reach for JWImageLoadRGBA specifically when the transparency is the thing you're after.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| path | STRING | ./image.png | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |