JSFiddle - React, Tailwind, and code Playground

HTML

<div class="image">
  <img src="https://osclass.org/oc-content/themes/osclass_org/images/logo.jpg" />
</div>

CSS

.image {
  width: 75%;
  height: 120px;
  border: 1px solid #000;
}

.image img {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}