Skip to content

Unpremult

Unpremult
Composite

Divides RGB by alpha, converting premultiplied alpha back to straight alpha before color corrections.

Unpremult reverses the multiply: it divides each pixel's color by its alpha, so a stored 64, 0, 0 at 25% opacity comes back to full-strength red before a color correction.

Unpremult reverses premultiplication: every RGB value is divided by the pixel’s alpha, recovering the original un-darkened color in semi-transparent regions. Fully transparent pixels stay black, since there is no color left to recover.

Its main job is protecting edges during color work. Grading a premultiplied image shifts its semi-transparent edge pixels (they are part color, part black), which shows up as dark or bright fringes after compositing. Unpremult first and keep the image straight from there: ArcBrush’s nodes expect straight alpha (Merge premultiplies its inputs itself), so Premult it again only on its way out to a file or app that wants premultiplied color.

At 8-bit precision the round trip is slightly lossy in the darkest semi-transparent pixels; in a 32-bit (float) document it is exact.

Pins

ImageImage
InputRequired
ImageImage
Output
  • Unpremult a premultiplied source once, right after its Image In, before any grade or Merge.
  • A render saved premultiplied (most often a TGA, now and then a PNG) is read by Image In as straight, so unpremult them before Levels, Curves, or Exposure. An EXR needs no Unpremult: Image In’s EXR Alpha (Associated by default) already reads its premultiplied color back to straight.
  • Prefer a 32-bit (float) document for repeated premult round trips; the conversion is exact there.