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 Internet Explorer/Edge 15 or earlier.