Svgo: "Collapse useless groups" collapsing not useless groups

Created on 27 Sep 2018  路  1Comment  路  Source: svg/svgo

Hello! This issue was noticed in svgo v1.0.5.

Option "collapseGroups" (or "Collapse useless groups" in SVGOMG) removing tags and filter attributes to images, that does not work -- image doesn't displayed properly.

Attached file demonstrates the problem -- just try to compress it with and without "collapseGroups" option.

Charivniy-Vechir.zip

Most helpful comment

I'm running into this same issue.

  <defs>
    <filter id="a">
      <feDropShadow dx="0" dy="25" stdDeviation="25" flood-opacity="0.65" />
    </filter>
</defs>

is being turned into this:

<defs><filter id='a'/></defs>

>All comments

I'm running into this same issue.

  <defs>
    <filter id="a">
      <feDropShadow dx="0" dy="25" stdDeviation="25" flood-opacity="0.65" />
    </filter>
</defs>

is being turned into this:

<defs><filter id='a'/></defs>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

happyPanghu picture happyPanghu  路  3Comments

niftylettuce picture niftylettuce  路  4Comments

onlymega picture onlymega  路  6Comments

bdkjones picture bdkjones  路  3Comments

crybat picture crybat  路  6Comments