exupero / saveSvgAsPng

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

Incorrect rendering with Transform: translate3d, or user error? #202

Open earwole1 opened 5 years ago

earwole1 commented 5 years ago

I'm attempting to grab a screenshot of a Leaflet (version < 1.0) map with overlays. The overlays are provided as SVG.

However, both my code and the test page produce incorrect results. the SV preview "looks" correct, albeit offset on the page, but saving to PNG (or PNG data uri) produces erroneous results.

Any thoughts?

-Thanks. Sample SVG attached. svg_error.txt