27. The method of claim 19 , in which the step of determining a ranked list of candidate text location regions comprises filtering candidate text locations to remove overlapping locations.
19. A computer-implemented method for overlaying text content on a digital image, the method comprising: determining a ranked list of candidate text location regions by calculating location scores for each of a plurality of candidate text location regions within an initial digital image, the location regions scores determined at least in part based on perceived brightness of the candidate text location region, favoring locations with particularly dark or particularly light perceived brightness to allow placement of more colorful and higher contrast text color, as well as one or more of the following location region score components: (a) color similarity of the candidate text locations within the initial image; (b) the position of the candidate text location region within the image, (d) whether the text is centered within the initial image, (e) whether the text is near the top of the initial image, (c) the presence and magnitude of extra pixels around the candidate text location region having color similarity to the candidate text location region, (d) whether the candidate text location region encroaches on a region identified by a subject detection component as containing a face, (e) the presence of detected edges within the candidate text location region, and (f) the size of the candidate text location region, and (g) the extent to which initial image content within the candidate text location region is blurry; determining a ranked list of text colors associated with one or more of the candidate text locations, the text colors being ranked based on a color score calculated for each text color, the color score determined at least in part based on criteria comprising difference in perceived brightness between the text color and colors of a portion of the digital image corresponding to the text location region; selecting a preferred text location region based at least in part on the text location scores; selecting a preferred text color from the ranked list of text colors; and generating a second digital image comprising the initial digital image, having said text content rendered at the preferred text location region with the preferred text color.