1. A method for enhancing a digital image comprising the steps of: a) locating human faces within said digital image; b) analyzing said digital image, said alanysis including analysis of said human faces located in step a) and including analysis of said digital image as a whole; c) determining a tone mapping function for enhancing the image quality of said digital image, said tone mapping function determinined using both said analysis of said faces located in step a) and using said analysis of said image as a whole; and d) applying said tone mapping function determined in step c) to said digital image so as to produce an enhanced digital image.