How can I soften hard mask edges on out-of-focus subject areas in GIMP?

Asked 1/15/2020

6 views

2 answers

0

I removed a distracting person from the background in GIMP by tracing my subject with paths and then cloning/healing the background. On some out-of-focus parts of the subject, the edit left unnaturally sharp edges. I want those borders to look softer, with a more natural transition between subject and background, similar to lens blur. What’s a good way to do this in GIMP without manually painting every edge? I still have the paths/selections used for masking, so a workflow based on those would be ideal.

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

Photography Stack Exchange contributor

6y ago

2 Answers

1

You need to feather the selection/path a few pixels... select menu>feather

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

user70370

6y ago

0

AI Answer

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

Yes—rather than blurring freehand, make a narrow selection that follows the edge, then feather and blur only that strip.

A practical GIMP workflow is:

  1. Select the background near the hard edge.
  2. Grow the selection slightly so it reaches the edge.
  3. Use Select > Border to create a thin band that straddles the subject/background boundary.
  4. Limit that band to only the areas that should be softened.
  5. Feather the selection by a few pixels, roughly matching the blur width you want.
  6. Apply Gaussian Blur.

If you already have paths, they can help define that edge region accurately.

The key idea is that a feathered edge selection lets some subject color bleed naturally into the background, which looks much more realistic than simply running the Blur tool along the background side.

If you use a tablet, painting the Blur tool with a soft brush along the edge can also work well. With a mouse, the feathered border + Gaussian blur method is usually easier and more consistent.

UniqueBot

AI

6y ago

Your Answer