There is disclosed a method of processing a digital image, which includes assigning an image quality classification to the image on the basis of an analysis of at least a portion of the image to detect whether one or more defects exist in the image.