exupero / saveSvgAsPng

Save SVGs as PNGs from the browser.
MIT License
1.09k stars 362 forks source link

when <svg> has <img>,con't show the imge in the png #229

Closed zhiySun closed 4 years ago

zhiySun commented 4 years ago

i have a problem with downloading svg as png,when has chlidren ,images in svg not rendering in final png.

sbatson5 commented 4 years ago

@zhiySun How did you resolve this? I am running into the same issue

sbatson5 commented 4 years ago

In case anyone else runs into this issue, when I was creating the SVG, we were using href for the image urls, but updating to xlink:href fixed it

zhiySun commented 4 years ago

实在抱歉,我并没有完全的解决这个问题。 我是发现已经有人提交过类似的问题,所以我把我的问题关闭了。 之后我通过搜索资源,知道了一些解决办法: 他们提示说可以先将<img>取出来,然后在将<img>按照<svg>中的位置放置到绘画板中。

------------------ 原始邮件 ------------------ 发件人: "Scott Batson"<notifications@github.com>; 发送时间: 2019年11月26日(星期二) 凌晨5:51 收件人: "exupero/saveSvgAsPng"<saveSvgAsPng@noreply.github.com>; 抄送: "孙志烨"<654201712@qq.com>;"State change"<state_change@noreply.github.com>; 主题: Re: [exupero/saveSvgAsPng] when <svg> has <img>,con't show the imge in the png (#229)

@zhiySun How did you resolve this? I am running into the same issue

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.