Is it possible to replace svg width,height with viewBox?
for example
will be replaced with
I implemented a plugin which does this: https://github.com/guylando/svgo-addViewBox
You are welcome to add it to the official plugins list since its very useful to make svgs responsive when using them as an inline include (https://css-tricks.com/pretty-good-svg-icon-system/)
This functionality is essential.
It's more like image editing rather than optimization, so it's out of SVGO's scope.
Most helpful comment
This functionality is essential.