Tag: canvg

合并来自Raphael svg的图片

试图创造 第1步 – 让用户通过Ajax,Raphael和Raphael freetransform上传图像。 步骤2 – 单击按钮以显示合并上载图像中的一个图像。 (问题):我发现有关转换Raphael svg 1 2 3的类似post, 所以我也使用Canvg,但得到console.log: Resource interpreted as image but transferred with MIME type text/html error: image “” not found 。 请帮我找到解决方法。 或任何线索如何达到相同的目标(将上传的几个Raphael svg图像转换为一个png / jpeg)? 谢谢! 步骤1 // upload images and ajax show in page var paper = Raphael($(‘.upload_img’)[0], 400, 200); $(‘.upload_btn’).click(function(){ … $.ajax({ type: […]