Bootstrap class: .mh-100

<img class="mh-100" src="#" alt="Max-height 100%">

Preview

Max-height 100%

More in Bootstrap Sizing