delph-in / delphin-viz

JavaScript visualizations of various DELPH-IN structures.
http://delph-in.github.io/delphin-viz/demo/
MIT License
15 stars 4 forks source link

PNG and SVG saving is broken for DMRS visualizations #2

Closed ned2 closed 4 years ago

ned2 commented 7 years ago

The DMRS visualisations use CSS to style the SVG which are not saved when downloaded, so the resultant image is essentially garbage.

One option is to use this approach: https://spin.atomicobject.com/2014/01/21/convert-svg-to-png/

Some comments on this option from @goodmami via email exchange:

The approach you linked appears to traverse the CSS defined on a page and embed used rules in an internal