Need some help with image cropping transformation

I need to crop a batch of images that have a person in them to specific dimensions. I want to keep the person in the result crop, but I want them to be placed at a specific part of the image, for example, south east. I have thought about using x,y coordinates, but that would mean I would need to determine the coordinates separately for each image.

I haven't found a way to achieve this yet and would appreciate some advice.

Thanks!

Answers