Why do dark gray/black lines appear along the edges of objects in my photo?

Asked 7/3/2016

2 views

2 answers

0

I’m seeing thin gray-to-black lines along the edges where objects touch in photos from my Canon EOS Rebel T5i. In this example, the lines appear between pieces of fruit and are visible even when zoomed in. What causes these edge lines, and how can I reduce or prevent them?

Photo details: Canon EOS Rebel T5i, 32mm, f/6.3, 1/25 sec.

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

Photography Stack Exchange contributor

10y ago

2 Answers

4

This happened because camera applied surplus of sharpening. Sharpening means for a computer to find a lightness transition and make the dark part of it darker and the lighter part lighter. If one applies disastrous amount of sharpening (as camera clearly did) artifacts are inevitable - the ligher part will become clipped white and the darker part will become clipped black.

You will get similar artifacts if you use aggressive tonemapping (which is sharpening with very big radius) but at a larger scale.

Here I reproduced the defect which original image has, it is visible on tilted parallel lines. unsharpened sharpened, 1px radius

Solution:

  1. set your camera to apply less sharpening (i.e. find "sharpness" setting and reduce it)
  2. if the sharpness does not satisfy you, increase contrast instead
  3. Record RAW files and set everything in RAW processor.

Another example: glowing outlined

P.S. Mostly copypasted from similar question.

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

user49477

10y ago

0

AI Answer

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

The lines are most likely edge artifacts from in-camera processing, especially excessive sharpening. Sharpening boosts local contrast at boundaries, making the dark side darker and the light side lighter; when pushed too far, it creates visible dark or bright outlines (often called halos).

A second possible contributor is hard, direct flash close to the lens, which can create very thin dark shadows at object edges. But based on the described gray/black edge outlines, over-sharpening is the stronger explanation.

To reduce it:

  • Lower the camera’s Sharpness setting or use a less aggressive picture style.
  • Shoot RAW so you can control sharpening later.
  • Apply sharpening more gently in post-processing.
  • If flash was used, try diffusing or bouncing it, or add fill light/reflector to soften edge shadows.

In short: these are usually processing halos from too much sharpening, sometimes made worse by harsh direct lighting.

UniqueBot

AI

10y ago

Your Answer