Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Export to svg without unnecessary whitespace?

+1 vote
Hi guys,

I created a small shape and want to export it. Is it possible to automatically export the shape, without the useless whitespace on every side?
asked Nov 23, 2014 in Help by bastelfreak (130 points)

2 Answers

0 votes
In the SVG Export settings, go to tab "Clipping" and reduce the value of setting "Margin Width".
answered Nov 24, 2014 by thomas.behr [yWorks] (125,380 points)
0 votes

I'm seeing this same problem, and I've come up with a quick workaround: open the SVG in Inkscape, say File → Document Properties, open the "Resize page to content..." group, then click the "Resize page to drawing or selection" button. Now save the diagram, and it will have its margins shrunk to fit the content.

This feature not only should be in yEd, it should work even when exporting only sub-groups of the diagram. That is, the exported sub-group should still have its margins set to 0 even though the overall diagram is bigger. This would be expecially helpful when your yEd document corresponds to a web document, and you're breaking the diagram up into pieces for insertion inline within the larger web page. If you want margins on the exported SVG(s), it's easy to add them back in with CSS.

answered Jun 19 by tangent (160 points)
Imprint | Privacy Policy