I would look at using the image crop widget: https://appstore.home.mendix.com/link/app/254/
You can enforce an aspect ratio to make sure all profile images look the same. I think this is what mendix uses in our profile image upload flow.
Is there an automated command in CSS or other modules to crop the image automatically?
I have the same problem and I want to get squared images. The squared images is only be used for showing thumbnails. The original picture should not be resized becuse it is required for other purposes.
I am really glad, if someone faced the same issue and have a great solution.
Thank you!