Convert SVG to Canvas to PNG dataURL

This is a utility used to convert files on your computer from SVG to a PNG dataURL
NOTE; This works in FF/CH. IE throws a security error
1.) canvas drawImage (svg)
2.) Canvas
3.) PNG

PNG dataURL: width="" height=""

Javascript:
OK in:CH32/FF28