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

  • Tom
    Tom Member, Cloudinary Staff Posts: 108

    Hi @whilelikewise ,

    Thanks for reaching out.

    You should be able to use the Compass positions with Face-detection based cropping to achieve this.

    If you can also give me examples of what you have right now and what you exaclty need, I can assist.

    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas