Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
A little helper object to allow for saving of a canvas tag to an image. It uses a server side script to save the image to avoid things like not being able to set a filename, and popping up scary looking dialogue boxes. For more in-depth explanation and example, see: http://greenethumb.com/article/1429/user-friendly-image-saving-from-the-canvas/ quick impl example: <canvas id='drawhere' width='610' height='350'></canvas> <script src="./canvassaver.js"> <script> var cnvs = document.getElementById('drawhere'); var cs = new CanvasSaver('./saveme.php') var btn = cs.generateButton('save an image!', cnvs, 'myimage'); document.appendChild(btn); </script>