15 May
2009
15 May
'09
5:44 p.m.
Hello Sergiu,
If you want to do something similar in 2.0 syntax, you should use:
{{velocity}} {{html}}<img src="${xwiki.svg.getSVGImageURL(${doc.getAttachment('logo.svg').getContentAsString()}, 100, 100)}" width="100" height="100" alt="The logo" />{{/html}} {{/velocity}}
I have tried the above (the page is in 2.0 syntax), but for some reason I could not get this work correctly (the .svg did way too much empty space around it), possibly the "bounding box" issue or something like that. For the time being, I went with .png (converted from .svg) but it is good to know that better support for SVG is being worked on. Kind regards, Vlad