Ask Your Question
0

How to properly export svg for use in webpages

asked 2019-01-05 19:02:49 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have tried exporting an image to svg but Draw added padding to it. It adds about 30% padding and then alignes image to center I am trying to export image so it would automatically scale to fit width and height. So my question is: is there a way to setup exporting or is this a broken feature? I had similar problems with Visio...

edit retag flag offensive close merge delete

Comments

Try the same procedure on Inkscape - any other result?

Grantler gravatar imageGrantler ( 2019-01-05 21:26:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-07-06 17:57:24 +0200

robEHP gravatar image

I don't know if it's the "proper" way to do it, but when I export images, I first group the whole image. Then, I set the paper size to be the same as the complete image and set all the margins to 0 mm. Next, centre the image both virtically and horizontally. Then click the "Export icon". I have always done it like this and don't have an problems with padding being added.

edit flag offensive delete link more

Comments

1

There is no need to change the page size: just check the "Selection" option you find on the lower left corner of the dialog that opens when you go to File → Export --of course, you need to select the drawing first ;)

RGB-es gravatar imageRGB-es ( 2019-07-06 18:20:29 +0200 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2019-01-05 19:02:49 +0200

Seen: 668 times

Last updated: Jul 06 '19