Images in SVG Image tags not showing up in Chrome, but displays locally?

前端 未结 4 1151
南笙
南笙 2020-12-06 16:07

For some reason, Chrome is displaying the SVG without the images in its Image tags.

Here is a sample from my SVG:



        
4条回答
  •  爱一瞬间的悲伤
    2020-12-06 16:38

    Another solution that worked for me is, open SVG image in any editor (Vs code or Notepad++) and replace

    xlink:href="data:img/png;base64,
    

    to

    xlink:href="data:image/png;base64,
    

    img to image.

    Hope this helps if someone is still looking for it.

提交回复
热议问题