Is there a way to ensure that an image inside a div resizes itself based on the dimensions of the div without distorting the ratio?
<div class="w-50">
<img src="" class="w-full h-full image-cover">
</div>
I am limited in only being able to change the div class and not the image tag class. Therefore, options like max-h-full, max-w-full, object-contain have not been effective. Are there any workarounds for this issue?