I need to add a stroke
around a <image>
within a <svg>
. But nothing happens when you add the value in that tag.
See below what happens: when I use it in <image>
it does not work, however in <rect>
it works.
Example:
.my-svg{
stroke: red;
stroke-width: 3px;
}
<svg class="my-svg">
<image y="0" x="0" height="100" width="100" href="https://i.stack.imgur.com/eJaft.jpg" />
</svg>
<svg class="my-svg">
<rect height="50" width="50"></rect>
</svg>
In this case, what could be done to insert a stroke
into the image?