开发者

Saving Pixastic Images

I have been playing around with todataurl following some advice but to no avail.

I am using the pixastic processing library and the manipulated image is placed in a div. I want a way to be able to temporarily store these images so that they can be stored on the server for later use on the same page.

Any suggestions?开发者_开发问答

Here is a Demo Page


Use

document.getElementById("canvas").getContext('2d').canvas.toDataURL()

to get PNG image base64 decoded.

After it you can save image to server or in html5 localStorage.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜