1. A method of controlling a digital photographing apparatus, the method comprising: measuring surrounding brightness of the digital photographing apparatus; setting at least one of an image processing type and an image processing strength according to the measured surrounding brightness; and performing image processing of an input image according to at least one of the set image processing type and the set image processing strength, wherein the setting comprises: detecting a first area comprising a face area from the input image; dividing an entire area of the input image into the detected first area and a second area remaining by excluding the first area from the input image; calculating a difference between a luminance value of the first area and a luminance value of the second area, wherein the difference is calculated by using the measured surrounding brightness; and if the difference is less than a first threshold, setting at least one of first image processing comprising face tone processing of the first area and a strength of the first image processing.