1. A method, comprising: automatically identifying, by a processor, a region of a digital image containing first pixels, each situated on a positive horizontal gradient, and second pixels in proximity to the first pixels, each situated on a negative horizontal gradient; calculating a distribution of intensities of a color channel for the pixels in the region; and analyzing the distribution in order to detect whether the region contains anti-aliased text.