title: Save svg(in div) to png or convert to png. Raphaël JS
body: <p>I'm new to Raphaël and javascript and got a question of how to save the svg (in div) to png using Javascript. I read may articles: such as using canvg <a href="https://code.google.com/p/canvg/" rel="nofollow">https://code.google.com/p/canvg/</a>  and <code>canvas.toDataURL('image/png');</code> ..etc but still don't know how to do it.</p>
  
  <p>I'm trying to convert the qrcodesvg.js output (<a href="http://vp-dev.net/qrcodesvg/" rel="nofollow">http://vp-dev.net/qrcodesvg/</a>) to some downloadable/readable png/image formats in the client side. May someone give me some hints which or what basic reference(s) to look at? Thanks!</p>
  
  <p>Kind regards,</p>