I have a specific image with dimensions of 244px by 751px, and I am trying to place it inside a div container that is 132px by 132px. I want the image to maintain its aspect ratio without being stretched. Despite using the img-fluid class, the image does not behave as expected. Can you please help me identify what I am doing wrong?
.thumbs-container {
width: 132px;
height: 132px;
}
.item1 {
background-size:contain;
}
<div class="thumbs-container col-2">
<img
class="item1 img-thumbnail"
src="http://via.placeholder.com/244x751"
/>
</div>