将 Canvas dataURL 保存为 .png 文件(通过应用程序发布在 Facebook 墙上)
我有一个小的 Facebook 应用程序,我希望能够将我的画布内容发布到某人的墙上,如果他们在保存图像数据后选择的话。
当按下保存按钮时,我会得到一个 dataURL,其中包含我想要发布到用户墙上的图像数据。我相信唯一的方法是将数据保存为 .png,然后将其张贴在墙上。我正在查看 dataURL 文档,但没有看到任何方法可以轻松地将 dataURL 输出为 .png 文件,以便我可以将其发布。最好的方法是什么?
I have a little Facebook application and I would like to be able to post the contents of my canvas onto someone's wall if they so choose after they save their image data.
When the save button is pressed I get a dataURL that contains the image data I would like to post onto the user's wall. I believe the only way to do this would be to save the data as .png and then post this on the wall. I was looking through the dataURL documentation and I did not see any way to easily output the dataURL as a .png file so that I can post it. What would be the best way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 udjamaflip 评论中的链接进行了更新:
http://webcache.googleusercontent.com/search? q=缓存:W3YaJQJpsqEJ:maran-emil.de/nodes/how-to-convert-canvas-animation-in-hd-avi-video-file+&cd=1&hl=en&ct=clnk&gl= au&client=firefox-a
Updated with link from udjamaflip's comment:
http://webcache.googleusercontent.com/search?q=cache:W3YaJQJpsqEJ:maran-emil.de/nodes/how-to-convert-canvas-animation-in-hd-avi-video-file+&cd=1&hl=en&ct=clnk&gl=au&client=firefox-a