I'm trying to apply a "mask" on my image, to just get the center of it and apply 50px
to 52px
, I tried to use clip-path
but it does not work, strong> and chrome for tests, follow my code:
CSS
.img_tamanho_icon
{
width: 50px;
height: 55px;
clip-path: inset(52px 50px 52px 50px);
-webkit-clip-path:inset(52px 50px 52px 50px);
display: block;
overflow: hidden;
}
HTML
<img src="minhaImg.jpg" class="img_tamanho_icon">
How could I do this? Without losing image resolution, for example "stretching" it