It is really easy if you can give image as background to div
.test {
background-color: orange;
width: 700px;
height: 700px;
text-align: center;
background-repeat: no-repeat;
background-position: center center;
}
<div class="test" style="background-image:url(http://via.placeholder.com/350x150);">
</div>
If you dont want to use inline style you can do
<div class="test">
<img src="http://via.placeholder.com/350x150">
</div>
.test > img{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}
.test{position: relative}