title: how to convert canvas image "data:image/jpeg;base64,.." to normal image file - javascript
body: <p>I have</p>
  
  <pre><code>image = canvas.toDataURL("image/png", 1);
  </code></pre>
  
  <p>but this is returning </p>
  
  <pre><code>data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDA.......
  </code></pre>
  
  <p>but I need normal image like <code>src="myimage.png"</code></p>
  
  <p>how can I get it from canvas?  i googled a lot, cannot seem to find what i need... </p>