Hi!
I'm working on a resize and crop workflow to allow images to be resized and then cropped to a specific size. Normally one resize the smallest dimension to fit the destination size, and then crop to get eg. a square.
However, in this case, I have some additional face-detection data: face_x, face_y and face_width and face_height. The X and Y coordinates of the face is top-left point in the original picture of where the face starts.
I want the cropped area to be centered at the face instead of in the center of the image.
Any smart minds out there who can help me out? Thanks!