Convert RGB
Convert RGB (ConvertRGBNode) — ComfyUI-LogicUtils
- image
- IMAGE
Some nodes are picky about channels. They want a plain three-channel RGB image, and the moment you hand them a PNG with an alpha channel or a grayscale image with one channel, they either error out or do something weird. Convert RGB is the fix: pass it any image, get back a clean RGB version with the channel count sorted out.
It's an unglamorous compatibility node, and it's the kind of thing you don't realize you need until a workflow breaks in a way that makes no sense. You loaded a transparent PNG, wired it into a node that expects RGB, and got a channel-mismatch error or a corrupted-looking result. Dropping Convert RGB in the middle flattens the image to the three channels the downstream node wanted, and the error goes away. This is a very ordinary flavor of the dependency and compatibility friction the ComfyUI community complains about constantly, except here the fix is one small node rather than an afternoon.
Convert RGB comes from ComfyUI-LogicUtils, aria1th's utility pack. aria1th is AngelBottomless, the trainer behind Illustrious XL, and this is his personal toolbox rather than a product, so expect terse nodes and almost no docs.
Inputs and outputs
One input, image, an IMAGE. One output, also an IMAGE, now guaranteed to be three-channel RGB. There's nothing to configure. It converts and passes the result through.
The important thing to understand is what it discards. Forcing an image to RGB drops the alpha channel. If your input had transparency, that transparency is gone after this node, flattened away so only the color channels remain. Most of the time that's exactly what you want, because you're feeding something that doesn't care about alpha anyway.
Installing it
- ComfyUI Manager: search "ComfyUI-LogicUtils" in Custom Nodes Manager, install, restart.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/aria1th/ComfyUI-LogicUtils, then restart.
No models, no heavy dependencies. The pack's optional auto-installer is off unless you set COMFYUI_LOGICUTILS_AUTO_INSTALL=1 (force off with COMFYUI_LOGICUTILS_SKIP_INSTALL=1), and a channel conversion needs none of it.
When to reach for it, and when not to
Reach for it when a node downstream is choking on an image and you suspect the channel layout, which is most common with transparent PNGs and with grayscale or mask-derived images that ended up with the wrong channel count. Slotting Convert RGB in front of the fussy node is often the whole fix.
Don't reach for it if you need to keep the transparency, because this node throws it out. If your goal is to preserve or build an alpha channel rather than flatten one, you want the compositing direction instead, like ComposeRGBAImageFromMask in this same pack, which goes the other way and attaches a mask as alpha. Convert RGB is strictly the "make this a normal opaque image" tool, and within that lane it's quietly reliable.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |