Mobile app version of vmapp.org
Login or Join
Sent7350415

: Why are my elements moved after being exported to svg I'm quite new to Adobe Illustrator, but used to PS. I wanted to experiment with Illustrator to create SVGs that can than be manipulated

@Sent7350415

Posted in: #AdobeIllustrator #Svg #Vector #WebsiteDesign

I'm quite new to Adobe Illustrator, but used to PS.

I wanted to experiment with Illustrator to create SVGs that can than be manipulated with JavaScript.

I created some kind of background-layer and filled it with a rect. That has a pattern as background-image (Adobes Waffelmuster - Doppelt).

I then created a second layer and added several filled paths to it. I tried to align these paths as best as I could to the background-pattern of my first layer.

When I export my graphic as SVG, my paths are not aligned to the background as in Illustrator. It seems they shifted a little bit to the right. Also, if I zoom in Firefox (STRG,+) the mismatch becomes even bigger.

Why is that and how can it be prevented? Is there something like relative and absolute positioning?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent7350415

2 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

Try to check "Preserve Illustrator editing capabilities" while saving, it should fix the problem.

Moreover, be sure that:


"responsive" is not checked
your artwork isn't bigger than your canvas
your canvas' size doesn't contains decimal values


I use Illustrator to generate .svg for the web and it works pretty well.

10% popularity Vote Up Vote Down


 

@Cugini998

As someone that had quite a bit of work done with coding up SVGs exported from AI (One example), I can tell that the issue is AI doesn't export SVGs in a format fit for the web. Not fully at least.

When using SVGs generated with AI, I had to always massage positions somewhat to maintain proportions originally seen while drawing on AI. As for anything path/gradient related - I found no way to export that from AI to be mimicked in a browser.

In the end, the only REAL benefit for developing your SVGs in AI is to get your coordinates. Sorry if this is not what you wanted to hear, but I spent almost 2 weeks trying to tweak the export process with professional AI users (5+ years) and the best we got - solid color filled polygons/lines/circles/etc., I.e. SVG wireframes, that were consistent (with some margin of error) with what was on AI.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme