<style>
.img-scale{
position: relative;
width: 100%;
height: 0;
padding-bottom: 100%;
overflow: hidden;
}
.img-scale img{
position: absolute;
width: 100%;
height: 100%;
}
</style>
<div class="img-scale">
<img src=""/>
</div>