Latest Tweets:
Jacob Seidelin’s implementation on saving the content of a HTML 5 canvas. Quoted: “Using the HTML5 canvas element, you can create all sorts of cool graphics client-side on the fly using Javascript. However, the canvas image cannot (in all browsers) simply be saved to disk as any other image. Luckily there is a neat function on the the canvas object called toDataURL(). This functions encodes the image data as a base64 encoded PNG file and returns it as a data: URI.” Canvas2Image provides .saveAsPNG, .saveAsJPEG, and .saveAsBMP. — Origin: Evadne Wu 2010/02/09