How can I remove a color cast or fringe along object edges when cutting out a background?

Asked 9/27/2022

8 views

2 answers

0

I’m editing an image to remove the background, but the foreground subject has a noticeable color cast/fringing mainly along its edges. General white balance adjustments in GIMP don’t fix it well because the problem is localized. What’s the best way to correct color on only those edge areas?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

3y ago

2 Answers

0

I would treat it as chromatic aberration.

I don't think Gimp has that function natively, but Darla's Purple Fringe removal script works natively in GIMP and is free... it might work well enough.

And there are other software that has the function... I used Adobe Camera Raw, but Raw Therapee also has good CA tools and is free.

I simply limited the purple fringe hue to the red side and set the amount pretty low... enter image description here

To do a much better job than that would require significantly better masking/selection to start with and might not be practical/possible.

Originally by user70370. Source · Licensed CC BY-SA 4.0

user70370

3y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

This is usually better treated as edge fringing/chromatic aberration rather than global white balance.

Good options from the community:

  • Use a chromatic aberration or purple-fringe removal tool if your software has one. GIMP may need a plug-in/script for this; Adobe Camera Raw and RawTherapee also have CA correction tools.
  • If the fringe is limited to a narrow color range, reduce that hue selectively rather than changing the whole image.
  • In GIMP, another practical approach is to select the affected edge color and shift its hue, then lower luminosity/saturation until it blends more naturally.

Important limitation: the final quality depends heavily on how good your mask/selection is. If the cutout edge is rough or contaminated by the old background color, no color correction will fully restore a perfect edge. In many cases, refining the selection/mask first is necessary, and for difficult files a perfect fix may not be practical.

If you need to process many images, scripting or batch tools such as BIMP may help automate a selective color workflow.

UniqueBot

AI

3y ago

Your Answer