1. An image processing apparatus comprising: a processor configured to: detect a face from a first image; determine whether a trimming condition is satisfied based on a position of the detected face and a size of the detected face; and perform a trimming operation to generate a second image comprising the detected face by trimming the first image, only if the trimming condition is satisfied; wherein the trimming condition is satisfied when a position of the detected face is included in a reference area comprising a center of the first image, and a size of the detected face is greater than a first reference value and smaller than a second reference value.