Easiest way to display SVG on Web?

I’m looking for the best way to display an SVG, as my first attempt is displaying it very grainy and not scaling well.

I’ve tried using g.DrawPicture in a WebCanvas, but the size and resolution are terrible. I tried using WebImageViewer and setting Display Mode to ‘ScaleAspectFit’ and get same unusable results. If I drag the sample file onto a browser it displays perfectly - so the image itself isn’t to blame.

Any ideas?

To get the WebImageViewer to display SVG natively in the browser pass the URL, not an Image value.

2 Likes

Thanks Tim - I’ll give that a shot!