开发者

Saving Pixastic Images

开发者 https://www.devze.com 2023-03-02 16:57 出处:网络
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 te

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

精彩评论

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