1. Start with Select and Mask, not manual edits
Before touching anything by hand, run the selection through Select → Select and Mask (or the equivalent button in the options bar for most selection tools). Set the Refine Edge Brush's Radius to a small value, around 1px is usually enough, and turn on Decontaminate Colors. That option specifically targets color fringing on complex edges like hair or fabric by shifting the edge pixels' color toward what's actually behind them, and it outputs to a new layer rather than editing your mask directly, so you always keep the original to fall back on.
2. Blur the mask, then re-sharpen with Levels
For jagged, pixelated edges, apply Gaussian Blur directly to the layer mask itself, not the image. This softens the harsh steps in the edge. Follow it with a Levels adjustment on the same mask and drag the black and gray input sliders to the right. That combination removes the halo the blur alone would leave behind while keeping the edge noticeably cleaner than the original jagged version. Use the smallest blur radius that actually fixes the problem, pushed too far this combo will eat fine detail like individual hair strands.
3. Push the edge inward with the Minimum filter
Filter → Other → Minimum, set to Roundness, shrinks the selection edge inward by a small amount. That's often enough to hide a thin rim of contaminated or halo-colored pixels without blurring the whole edge the way step 2 does. It's the faster option when you specifically need to kill a halo and don't need to soften pixelation at the same time.
4. Levels alone, no blur first
Not every rough edge needs the full blur-and-recover treatment. For lighter fringing or mild pixelation, applying Levels directly to the mask and dragging the black and gray sliders to the right can clean things up on its own. It's faster than step 2 and worth trying first before reaching for Gaussian Blur.
5. Paint out just the problem spot
When the halo or fringe only shows up in one specific area, not around the entire perimeter, fixing the whole mask is overkill and risks softening detail you didn't need to touch. Instead, load the mask as a selection, contract it by 1px and feather it by 1px, then invert the selection. With that inverted selection active, paint black on just the mask's outer edge to kill the halo precisely where it's actually visible, leaving the rest of the edge untouched.
Quick answers to a few related questions
Which technique should I try first?
Start broad with Select and Mask and Decontaminate Colors, since it handles the most common fringing issue in one pass. Move to the targeted techniques (steps 2 through 5) only for whatever's left after that.
Do these techniques work on luminosity masks too?
Yes. All five operate on any grayscale mask, regardless of how it was built, tonal selection, manual painting, or any other selection tool. The mask is just pixel data at this point; these methods don't care where it came from.
Can I overdo the blur-and-Levels combo?
Yes, easily. You're literally averaging pixels together before pushing the result back toward pure black and white, so pushed too far it will genuinely lose fine detail, like individual strands of hair, that a lighter touch would have preserved.
EN
IT