Reputation: 63547
I have an <image>
inside of an <svg>
that is not displaying. I have checked the SVG spec and several SVG demos. This code should work, but the image does not appear. Any ideas?
<svg width="415" height="240">
<g transform="translate(115, 0)">
<image href="img/test.png" width="143" height="15" x="0" y="0"></image>
</g>
</svg>
The image href URL is correct :)
Upvotes: 0
Views: 5601
Reputation: 72385
You are missing xlink
<image xlink:href="img/test.png" width="143" height="15" x="0" y="0"></image>
Upvotes: 3