Chromatic aberration is a form of distortion in color optical devices that produces undesirable color fringes along borders within images. In this paper, we propose a novel method for detecting and eliminating chromatic aberration using image processing. We first analyze the color difference behavior around edges that do not show chromatic aberration and propose a range limitation property for edges. After searching for the pixels that violate the above property, the corrected pixel values are generated to eliminate the color fringes. The proposed algorithm corrects both lateral and longitudinal aberration on a single distorted image, and experimental results demonstrate the performance of the proposed method is effective.