As for InkScape to make the svg file, all the points had integer coordinates?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
25 views
Usually the coordinates of a line(path) in the SVG looks like:
The task that they were:

Illustrator exports to SVG offers to specify the number of decimal places, but at least he has 1 badge.

Manually edit the coordinates is not an option.
by | 25 views

3 Answers

0 like 0 dislike
All coordinates depend on the settings of the canvas and mesh. If we in the settings of the canvas will indicate the size in millimeters/centimeters, the coordinates are still in pixels (because the default grid in pixels). View that the upper left edge of the document does not coincide with the grid:
\rМиллиметры
\r
Change the document size in pixels and see that there is a fractional number:
\rПиксели дробные
\r
And now take a fraction of the size of the document and get the beauty:
\rПиксели
by
0 like 0 dislike
To draw in scale 1/10. And then when you export to specify rounding to single digit.
by
0 like 0 dislike
There is light at a special library like SVGO to optimize SVG. There's also an online service based on it: https://jakearchibald.github.io/svgomg/. It removes unnecessary tags created by Inkscape, shorten the text, and in addition may round the value - slider Precision. The slider is limited to 1 decimal place, however, nothing prevents to open developer tools and change the limit slider to 0.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
28,070 users