Click the "Try it" button to cut off the sides of the image, preserving the aspect ratio:
Note: The objectFit property is not supported in Edge 15 or earlier.