1. A method of controlling a digital photographing apparatus, the method comprising: generating a first image signal by photographing a face of a subject; performing a face recognition algorithm by using the first image signal; adjusting an exposure value when the face cannot be recognized from the first image signal; generating a second image signal by photographing the face of the subject under the adjusted exposure value; and performing the face recognition algorithm by using the second image signal; determining the exposure value based on the recognized face in the second image signal; and generating a third image signal by photographing the subject under the determined exposure value, wherein the exposure value is determined according to a first release signal and the third image signal is generated by photographing the subject according to a second release signal.