svgo shape to path do not convert ellipses

869 Views Asked by At

Trying to use svgo to batch convert shapes to paths from svg files.

https://github.com/svg/svgo

svgo --version
1.2.0

looklike ellipse element are not converted to paths

made test on commande line like :

➜ svg svgo --enable=convertShapeToPath 1.svg

➜ svg svgo --enable=convertShapeToPath --config=conf.json --pretty 1.svg

with config.json having

{ "convertArcs": true }

also tried with

"plugins": [
    {
  "name": "convertShapeToPath",
  "params": {
    "convertArcs": true
  }
},

also tried

{
  "pretty": true,
  "multipass": true,
  "floatPrecision": 2,
  "plugins": [
    {
      "name": "convertShapeToPath",
      "enabled": true,
      "params": {
        "convertArcs": true
      }
    }  
  ]
}  
1

There are 1 best solutions below

0
On

Finally it has to do with configuration object format that must be as follow :

"plugins": 
[{ 
    "convertShapeToPath": 
    { 
        "convertArcs": true 
    } 
}]