Mobile app version of vmapp.org
Login or Join
Sarah814

: Export from Sketch - vector to SVG strange output I'm trying to export some vector icons I drew from sketch into SVG and PNG. Here are my icons in sketch: All nice and crisp. The shapes

@Sarah814

Posted in: #SketchApp #Svg #Vector

I'm trying to export some vector icons I drew from sketch into SVG and PNG.

Here are my icons in sketch:



All nice and crisp. The shapes are in a group and against a mask, like so:



When I click export, I export them to SVG and PNG.

Here is the PNG's on a webpage:



These look great, exactly how I want them.

Here is the SVG's on a webpage:



The hexagons are no longer rounded, and at some points the stroke is thinner (eg - the bottom of the first icon) and some times it just completely disappears) also, the mouse cursor on the third icon has rotated to be facing straight up!

Does anyone know how I can make this export just like the PNG's but in SVG format? I can't seem to see any other option than 'export' so not sure what i'm doing wrong?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Sarah814

3 Comments

Sorted by latest first Latest Oldest Best

 

@Sent7350415

I ran into same issue and while reading I experimented a few things. I was able to export the desired output by converting the shape into outlines (shortcut is Shift + Command + O`). It will create a combined shape but you can remove unnecessary shapes and when you export it will export with curves!

10% popularity Vote Up Vote Down


 

@Eichhorn212

Even I had the same problem while exporting SVG from sketch. The only solution is, you have to make it as a combined shape while exporting. It works but it is really hard to achieve. Still Sketch(41.2) has that issue.

10% popularity Vote Up Vote Down


 

@Alves566

I am not familiar with Sketch, but based on my AI experience, the problem might be that the rounded corners of the hexagon might have been created using a feature that is not a standard SVG feature.

SVG is a vector format but it does not support every possible effect, shortcut and visual candy that the vector editing softwares include. Some effects are impossible to export to SVG because they are not part of the SVG definition.

In AI, for example, there is more than one way to make rounded corners. Some of them are very easy to use, like drawing a rectangle and applying a "rounded corner" effect, while some other ways are more time consuming, like painstakingly drawing every rounded corner using the pen and the anchor handles. The result is the same but the methods are quite different.



AI seems to be pretty good at saving SVGs so they don't loose any effect, but If I would find this problem in AI (try to export an effect and notice it does not make it to the SVG), I would try to make the illustration as basic as possible before saving it as an SVG. In AI I would try to "expand" the illustration which basically means "break all the complicated effects into simple shapes". This option would take, for example, the "rounded corner" effect and automatically convert it into a curve, as if I would have drawn it manually. If there is a similar option in Sketch, you could give that a try.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme