I'm using the clip
property in a tag to make a cut in the bottom of it, however this image will be dynamic, the size of the width is fixed but the size of the height will be dynamic.
So if I have an image with height: 1000px;
and the property clip-path: inset(0px 0px 10px 0px);
will crop 10px from the bottom of the image.
But I need to make a 100% cut of the bottom of the image if the height is greater than 542px.
Regardless of the size of the height the image will always get the size of 542px because of the cutout.
If I determine a fixed size with CSS in the image it will get flattened.