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
I threw an SVG into SVGOMG and expected to be able to remove some decimal places by reducing the precision slider to 0, but got unexpected results, with precision 0 being almost identical to precision 1, in that it had removed some but not all of the decimal places:
I had perhaps incorrectly assumed that 0 meant "as un-precise as possible". I'm not sure if this is specifically an SVGOMG or an SVGO issue, and I'm not 100% sure what the desired solution would be. Either there's something going wrong, which is resulting in the lower precision values incorrectly not being rounded, or it is intended behaviour, but then a) it's not clear what 0 means, and b) maybe an even lower (-1?) option would be helpful for situations like mine?
Which I suspect has something to do with my issue. I could attempt to look into the root cause of cleanupNumbericValues with a value of 0 breaking images in SVGO? Or perhaps adding a -1 to the precision slider, or yet another feature toggle of "Allow potentially breaking rounding" would be more likely to be helpful?
I threw an SVG into SVGOMG and expected to be able to remove some decimal places by reducing the precision slider to 0, but got unexpected results, with precision 0 being almost identical to precision 1, in that it had removed some but not all of the decimal places:
Precision 2
Precision 1
Precision 0
I had perhaps incorrectly assumed that
0
meant "as un-precise as possible". I'm not sure if this is specifically an SVGOMG or an SVGO issue, and I'm not 100% sure what the desired solution would be. Either there's something going wrong, which is resulting in the lower precision values incorrectly not being rounded, or it is intended behaviour, but then a) it's not clear what0
means, and b) maybe an even lower (-1
?) option would be helpful for situations like mine?Entire SVG code
Click to view
The text was updated successfully, but these errors were encountered: