Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG in the Android Browser

I know it's not supported natively, but are there any JS Shims that render into a canvas object or something that would allow me to render SVG on the native android browser? (Not Opera, etc since I'd like to avoid having the user need to install another browser)

like image 623
9point6 Avatar asked Nov 14 '11 17:11

9point6


1 Answers

I think what you want is this library:

http://code.google.com/p/canvg/

Basically, you would detect if the browser is capable of rendering svgs, and if it can't, you would render the SVG to canvas.

like image 178
Clint Avatar answered Oct 19 '22 13:10

Clint