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; analyzing the distribution in order to detect whether the region contains anti-aliased text; wherein analyzing the distribution comprises creating a histogram presenting a distribution of intensities of the color channel for pixels in the region, identifying a number of bins in the histogram, identifying a number of intensities in each bin, and identifying an intensity associated with a bin containing a highest number of pixels; and wherein the region contains anti-aliased text upon detecting that the identified number of bins and the identified number of intensities in each bin are within specified ranges, and the bin containing the highest number of pixels comprises the bin having either highest or lowest intensity.