Appearance
Unpremultiply
Divides an image's color by its alpha. It fixes dark edges on premultiplied footage.
Category: Color Menu path: Color > Unpremultiply
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
in | imageRgba16f | input | Premultiplied input |
out | imageRgba16f | output | Straight result; alpha unchanged |
Parameters
None.
How It Works
Every pixel's red, green and blue are divided by its alpha. Where the alpha is zero there is no color to recover, so the pixel passes through untouched.
Most 3D renders, and many video files with alpha, store color that has already been premultiplied by the alpha. Caddis works with straight alpha. If premultiplied pixels arrive as though they were straight, every soft edge is effectively multiplied by alpha twice: anti-aliased edges, motion blur and depth of field get a dark fringe. Unpremultiply puts them back.
Usage Examples
Basic: A render with dark outlines
A render composited over a light background shows a thin dark halo. First try the source's Alpha setting: EXRs default to Premultiplied already. If the image comes from somewhere without that setting (a video, an AI node, a Layer Source), add Unpremultiply right after it.
Advanced: Premultiplied mattes from another app
A matte pass exported from another compositor as premultiplied color reads correctly after Unpremultiply.
Tips
- Prefer the Alpha setting on Image Source / Image Sequence when it applies: it is undone at decode, before the color space conversion, which is the exact order.
- Don't add it to footage that is already straight. The edges would brighten.
- Color that was premultiplied and then clipped can come back above 1 at the very edges. That is expected and harmless.
Related Nodes
- Premultiply — the inverse
- Unmult — makes black transparent (for elements rendered on black)
- Image Source — Alpha: Auto / Straight / Premultiplied / Ignore