In photography, purple fringing is the term for an unfocused purple or magenta "ghost" image on a photograph. This optical aberration is generally most visible as a coloring and lightening of dark edges adjacent to bright areas of broad-spectrum illumination, such as daylight or various types of gas-discharge lamps. Lenses in general exhibit axialchromatic aberration, in which different colors of light do not focus in the same plane. Normally, lens designs are optimized so that two or more wavelengths of light in the visible spectrum focus at the same plane. Wavelengths very different from those optimized in the design process may be severely out of focus while the reference colors are in focus; this axial chromatic aberration is usually severe at short wavelengths. Lens performance may be poor for such wavelengths in other ways too, including an increase in flare due to anti-reflective coatings also being optimized for the expected wavelengths. Most film has relatively low sensitivity to colors outside the visible range, so light spread in the near ultraviolet or near infrared rarely has a significant impact on the image recorded. However, image sensors used in digital cameras commonly are sensitive to a wider range of wavelengths. Although the lens glass itself filters out much of the UV light, and all digital cameras designed for color photography incorporate filters to reduce red and IR sensitivity, the chromatic aberration can be sufficient for unfocused violet light to tint nearby dark regions of the image. Bright cloudy or hazy skies are strong sources of scattered violet and UV light, so they tend to cause the problem. The term purple fringe used to describe one aspect of chromatic aberration dates back to at least 1833. However, Brewster's description with a purple fringe on one edge and a green fringe on the other is a lateral chromatic aberration. A general defocus of the shortest wavelengths resulting in a purple fringe on all sides of a bright object is the result of an axial or longitudinal chromatic aberration. Quite often, these effects are mixed in an image. Axial chromatic aberration is more subject to reduction by stopping down the lens than lateral chromatic aberration is, so the purple fringing can be very dependent on f-number: a larger f-number reduces axial aberration.
Other explanations
Purple fringing is usually attributed to chromatic aberration as described above. Other attributed causes of purple fringing in digital photography include many hypothesized sensor effects:
Commonly advocated methods of avoiding purple fringing include:
Avoid shooting with a wide-open lens in high contrast scenes.
Avoid overexposing highlights.
Shoot with a Haze-2A or other strong UV-cut filter.
Post-processing to remove purple fringing usually involves scaling the fringed colour channel, or subtracting some of a scaled version of the blue channel, or other blue-channel tricks.