1. An image processing apparatus comprising: an editing unit configured to execute a trimming edit on an image recorded in a storage medium, wherein information indicating a position of a face detected in the image and classification information of the face are associated with the image on which the trimming edit has not been executed yet; and a control unit configured to perform control in a manner such that, in a case where the face does not exist in the image on which the trimming edit has been executed, the classification information of the face is invalidated, and in a case where the face exists in the image on which the trimming edit has been executed, the information indicating the position of the face is changed.