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.

Solution:
- set your camera to apply less sharpening (i.e. find "sharpness" setting and reduce it)
- if the sharpness does not satisfy you, increase contrast instead
- Record RAW files and set everything in RAW processor.
Originally by user49477. Source · Licensed CC BY-SA 4.0
user49477
10y ago
0
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.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
Are ISO, aperture, and other camera settings saved with JPEG or RAW files?
What causes red/blue fringes along object edges on a white background?
Why do my Canon photos show a grid of lines when I zoom in on my iPhone?
How can I make image review stay on longer on a Canon EOS Rebel T5i?
Why do objects near the corners of a top-down photo look stretched or larger?
