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