[英]How to render inside image tag in svg
Here i struggling to generate SVG file with image tag.In image tags, XLINK:HREF
will shown properly image path but not rendered image while preview image. 我在努力用图像标签生成SVG文件。在图像标签中,
XLINK:HREF
将正确显示图像路径,但在预览图像时不会呈现图像。
HERE MY SAMPLE SVG CODE: 这里是我的示例SVG代码:
<svg width="525" height="300" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<g display="" id="front">
<title>Front 1</title>
<image xlink:href="/uploads/image_gallery/portrait/879795_print_plus.jpg" src="/uploads/image_gallery/portrait/879795_print_plus.jpg" id="svg_1" height="400" width="400" y="0" x="86"></image>
<image x="0" y="0" width="5" height="5" xlink:href="http://www.google.co.uk/images/srpr/logo3w.png"></image>
<rect stroke-width="3" stroke="#000000" fill="#FFF" id="svg_2" height="202" width="202" y="67" x="35"></rect>
<ellipse ry="77" rx="122" stroke-width="3" stroke="#000000" fill="#FFF" id="svg_3" cy="82" cx="275"></ellipse>
<line fill="none" stroke-width="3" stroke="#000000" id="svg_4" y2="197" x2="109" y1="75" x1="363"></line>
</g>
</svg>
Encrypted Image SRC also not rendered properly How to rendered image while preview in svg files?Is there any mistake ? 加密图像SRC也无法正确呈现如何在svg文件中预览时呈现图像?是否有任何错误?
The google image is white in the area you're displaying. Google图片在您显示的区域中为白色。 Making it larger makes it display for me.
放大后会显示给我。
<image x="0" y="0" width="35" height="35" xlink:href="http://www.google.co.uk/images/srpr/logo3w.png"></image>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.