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 to be added in a case where at least one face exists in the image 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 and the classification information is associated with the image.