css The picture should be cropped so its width and height are exactly the same. code example
Example 1: style image so it crops
.alligator-turtle {
object-fit: cover;
object-position: 100% 0;
width: 300px;
height: 337px;
}
Example 2: how to crop images in css
img{
object-fit: cover;
}