I think this should work for you. As a Mark commented on, clip-path
is a nice way to go. There are tools for getting just the right path such as Clippy. Once you've got the path, you drop it right into your code. In my demo, I used it on the div
wrapping the image, rather than on the image itself. I did it this way to keep border effects—added via pseudo-class—on top of the image.