CSS a propriedade Object-Fit
img {
width: 200px;
height: 300px;
object-fit: cover;
}
naly moslih
img {
width: 200px;
height: 300px;
object-fit: cover;
}