That should be what it does automatically.
The crop from center should essentially re-size the image to either fit the full height or the full width depending on the original image dimensions. Then it will crop either the width or the height that overlaps.
Do you have a sample image and cropped version you can show me so that I might better understand what you are looking at and maybe what you were hoping to see instead?