svgo --disable=cleanupIDs,removeViewBox,convertStyleToAttrs,inlineStyles,mergePaths,moveElemsAttrsToGroup,moveGroupAttrsToElems,collapseGroups --enable=removeXMLNS --config='{"convertArcs":true,"forceAbsolutePath":true}' --input='input.svg' --output='output.svg'
An SVG where all paths are absolute (e.g. no lowercase "m").
No paths are absolute, like it is ignoring the forceAbsolutePath option.
There is no forceAbsolutePath option.
Oh, that's quite recent. Your config is incorrect. You should pass an option to the plugin. Like
{"plugins": ["convertArcs",{"convertPathData": {"forceAbsolutePath": true}}]}
Ah okay - thanks for this. Why doesn't convertArcs need that kind of config?
It does. Why do you think so?
I assumed that from your example (and my current code), but I noticed now that convertArcs didn't work either, haha. Now it works:
svgo --disable='cleanupIDs,removeViewBox,convertStyleToAttrs,inlineStyles,mergePaths' --enable='removeXMLNS' --config='{"plugins":[{"convertShapeToPath":{"convertArcs":true}},{"convertPathData":{"forceAbsolutePath":true}}]}' --input='input.svg' --output='output.svg'
Thanks a lot for your help and impressive response time. Maybe we should add a config example in the README.md?
Most helpful comment
Oh, that's quite recent. Your config is incorrect. You should pass an option to the plugin. Like