title: Save Canvas image on Ipad
body: <p>The webpage is being run on Safari on an iPad. </p>
  
  <p>I have a canvas with the id "canvas1div". I would like to be able to receive this canvas as an image either by email or directly into the photo library. </p>
  
  <p><strong>Via Photo Library</strong>
  With regards to the photo library, I found this question 
  <a href="https://stackoverflow.com/questions/28785019/save-canvas-image-on-local-mobile-storage-for-ios-android">Save canvas image on local mobile storage for IOS/Android</a></p>
  
  <p>This is the function that I would like to call to save the image </p>
  
  <pre><code>function saveimage() {
      window.canvas2ImagePlugin.saveImageDataToLibrary(
       document.getElementById('canvas1div')
       );
  }
  </code></pre>
  
  <p>I don't know how to manually add the plug in to javascript so any advice here would be greatly appreciated. </p>
  
  <p><strong>Email</strong>
  Again I don't know how to convert the canvas to an image and email it. </p>
  
  <p>Thank you for your help</p>