Download PNG file
You can find the code at GitHub.
You probably want to checkout this other tool SVGOMG