You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When optimizing an SVG file that contains a dot rendered with a path (see example), SVGO converts the path to an elliptical arc (a) and applies rounding (e.g. floatPrecision: 3). If the arc's start and end points become identical due to rounding, the resulting path effectively disappears in the output.
This leads to a loss of visible elements in the SVG.
Describe the bug
When optimizing an SVG file that contains a dot rendered with a path (see example), SVGO converts the
path
to an elliptical arc (a
) and applies rounding (e.g. floatPrecision: 3). If the arc's start and end points become identical due to rounding, the resulting path effectively disappears in the output.This leads to a loss of visible elements in the SVG.
To Reproduce
Minimal example:
Steps to reproduce the behavior:
svgo
on it with default plugins andfloatPrecision: 3
(2 and 4 works fine!).Expected behavior
Even after optimization and rounding, small shapes like dots should remain visible.
Screenshots
Desktop (please complete the following information):
Additional context
Reproduced online (https://jakearchibald.github.io/svgomg/ with default options) and at the local environment.
The text was updated successfully, but these errors were encountered: