title: Convert HTML5 canvas to IMG element
body: <p>I would like to resize, stretch an HTML5 canvas in a way that the canvas act like an IMG element: set width-height by pixel, percent...</p>
  
  <p>I wonder if is there any way to convert/export an HTML5 canvas to an IMG element, or any way that can make this possible directly on the canvas.</p>
  
  <p><img src="https://i.stack.imgur.com/ZSZBr.png" alt="HTML5 CANVAS resize acting like IMG"></p>
  
  <p>I'm using KineticJS library, for details.</p>
  
  <p>Please help!</p>