exupero / saveSvgAsPng

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

problem with Canvg library #251

Open AStrubitsky opened 3 years ago

AStrubitsky commented 3 years ago

Hey. I work on Rtact JS. I connected the canvg library for IE 11 support. The code looks like this: import Canvg from 'canvg';

svgAsPngUri (svg, {scale: 0.5, canvg: Canvg.fromString}). then (uri => { iconImage.src = uri; }); As a result, I get a blank picture. Without library Canvg, it works just fine.