#svg

Remove SVG Whitespace external

15th January 2020

Quite often I need a quick way to trim an SVG so it has no whitespace, I use this JS Fiddle I found as it makes it really simple to do. I'm not sure who wrote it but it basically modifies the viewbox to be the SVG's bounding box then returns the updated SVG. Nice and simple.