- Posts: 310
- Joined: Wed Sep 04, 2019 11:07 am
- Real Name: Harro Zimmer
It's not, actually. What it's affecting is the black pixels in the foreground. A pixel with a value of (0,0,0,0) has no saturation at all. So a saturation adjustment cannot affect it. Likewise, a Gain or Gamma adjustment, which both leave 0 alone, will also have no effect on a black pixel. Contrast and Lift, however, can both change the black point. They're raising the value of that 0, so you're no longer merging black, no alpha, you're merging some value greater than 0 with no alpha, which is the same as an Add.
In order to prevent this from happening, you need to divide your image by its alpha, perform the color correction, then post-multiply again to restore the image to its previous state. The ColorCorrector, and many other color nodes, have a convenient Pre-Divide/Post-Multiply button that does this within the tool. Or you can bracket your color corrections with an AlphaDivide and AlphaMultiply, if you've got a chain of them all in a row.
Some software refers to this as "Unpremultiply" and "Premultiply," which is really confusing terminology. But if you've encountered those words before, this is the same thing.