exupero / saveSvgAsPng

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

Image tag not working in version of Chrome #212

Open khuong291 opened 5 years ago

khuong291 commented 5 years ago

I have an image tag inside svg tag like this

Screen Shot 2019-03-27 at 18 46 46

But when I save to png file, that image tag does not show

exupero commented 5 years ago

I see a couple strange things about your image tag:

  1. It has two href attributes. Is that in your source code, or is a library adding an extra one?
  2. I believe SVG image tags use xlink:href as the attribute name, not href.

The test page uses several image tags, so I'm fairly confident this functionality is working. Take a look at that code to see if there are meaningful differences from your code, and feel free to re-open if you find a problem.

yuyangv5 commented 5 years ago

I have the same problem. The test page has the problem too. My browser is chrome 73.0.3683.75 (64x).

exupero commented 5 years ago

219 added a fix for an image issue. Can you test with version 1.4.13?