JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper" style="width:400px">
<img src="https://imgplaceholder.com/350x225/ff7f7f/333333/fa-image">
</div>
<div class="wrapper" style="width:200px">
<img src="https://imgplaceholder.com/350x225/ff7f7f/333333/fa-image">
</div>
<div class="wrapper" style="width:100px">
<img src="https://imgplaceholder.com/350x225/ff7f7f/333333/fa-image">
</div>
CSS
.wrapper {
border-radius: 180px;
overflow: hidden;
outline: 1px solid red;
}
img {
width: 100%;
}
.wrapper {position:relative;}
.wrapper:before {
content: '';
display: block;
width: 100%;
padding-top: 100%; /*trick here*/
}
.wrapper img {
position:absolute;
top: 0;
left: 0;
width: 100%;
}