Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax for SVG <image> element using a local resource

Is there a difference in the syntax when using the SVG-image-element with a local source (e.g. C:\image.png) and a source on the internet (e.g http://www.google.de/intl/de_ALL/images/logos/images_logo_lg.gif)?

My Problem is that the following works:

<image x="100" y="100" width="100" height="100" xlink:href="http://www.google.de/intl/de_ALL/images/logos/images_logo_lg.gif">
</image>

and with the following, i'm just getting a white page:

<image x="100" y="100" width="100" height="100" href="C:\google.png"></image>
like image 933
user1665232 Avatar asked Feb 19 '23 03:02

user1665232


2 Answers

Solved the problem...:

<image x="100" y="100" width="100" height="100" xlink:href="file://C:\google.png"></image>

Thank you!

like image 183
user1665232 Avatar answered Feb 24 '23 17:02

user1665232


Have you tried "file:///c:/google.png"?

like image 41
skunkfrukt Avatar answered Feb 24 '23 16:02

skunkfrukt