使用CSS过滤器后保存图像 [英] Save images after using CSS filter
本文介绍了使用CSS过滤器后保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在建立一个新的网站,让用户对图片应用过滤器(就像Instagram)。我将使用 -webkit-filter
。
I'm building a new website that will let users apply filters to images (just like Instagram). I will use -webkit-filter
for that.
用户必须能够保存过滤的图像。
The user must be able to save the filtered image. There is any way I can do that using JavaScript?
推荐答案
你不能直接保存图片,但是你可以渲染它们
You can't save images directly, but you can render them in Canvas, then save from there.
请参阅:将html5画布保存为图像
这篇关于使用CSS过滤器后保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文