svgo icon indicating copy to clipboard operation
svgo copied to clipboard

Improve path merging for non-filled paths

Open yGuy opened this issue 4 years ago • 3 comments

If two paths are not filled, it does not matter whether they intersect or not and they can be merged. This helps with the common case of many different "lines" (which have no fill) that will fail to be merged if they intersect, which is common in many graphics.

With this change many of my files I got another 10% size reduction, because path merging almost always failed for my non-filled paths in "crowded" svgs..

yGuy avatar Dec 29 '20 11:12 yGuy

Hi please rebase and add tests

TrySound avatar Feb 17 '21 20:02 TrySound

@yGuy Any update on this? Sounds promising and would be good to get it merged in.

hashimaziz1 avatar Oct 04 '23 21:10 hashimaziz1

Sorry, no time for this, right now. But anyone can rebase and add tests. It doesn't have to be me.

yGuy avatar Oct 05 '23 07:10 yGuy