node-svg2img icon indicating copy to clipboard operation
node-svg2img copied to clipboard

cant load xlink:href=

Open zeteticl opened this issue 4 years ago • 2 comments

<image clip-path='url(#svg-draw)' y='5%' height='831' width='831' xlink:href='https://upload.wikimedia.org/wikipedia/commons/4/45/Eopsaltria_australis_-_Mogo_Campground.jpg' preserveAspectRatio='xMidYMin'/>

Error while loading image "https://upload.wikimedia.org/wikipedia/commons/4/45/Eopsaltria_australis_-_Mogo_Campground.jpg": ReferenceError: document is not defined

AND ALSO GET Pango-WARNING **: 10:59:03.251: couldn't load font "MicrosoftJhengHeiBold Bold Not-Rotated 120px", falling back to "Sans Bold Not-Rotated 120px", expect ugly output.

zeteticl avatar Dec 08 '20 03:12 zeteticl

i have same problem

SevenElement avatar Dec 11 '20 06:12 SevenElement

Sorry, I have no clue about the reason. You can try to submit this to upstream canvg to see if they can have a fix. I'll upgrade ASAP.

fuzhenn avatar Dec 15 '20 03:12 fuzhenn