Path and SVg Template
You can create your shape in one way. I used a quadratic Bezier curve.
MDN path
I added the image to svg using the image tag and template tag.
It is then used inside the path using this fill="url(#img1)" .
The defs tag is used to hide elements that we do not use directly.
<svg viewBox="0 0 100 100" width="400px" xmlns="http://www.w3.org/2000/svg"> <defs> <pattern id="img1" patternUnits="userSpaceOnUse" width="400" height="400"> <image xlink:href="http://lorempixel.com/400/400/" x="0" y="0" width="100px" height="100px" /> </pattern> </defs> <path d="M15,15 Q 50,0 85,18 100,50 85,85 50,100 18,85 0,50 15,15Z" fill="url(#img1)" /> </svg>
source share