Clean up SVG markup by stripping comments, declarations and extra whitespace, and export the SVG to a PNG at 1×–4× scale — all in the browser.
XML declarations, DOCTYPE, comments and redundant whitespace between tags — a light cleanup, not a full SVGO optimization.
The SVG is drawn onto a canvas at the chosen scale and exported as PNG, entirely in your browser.
Give the SVG a width/height (or viewBox with sensible size) for reliable rasterization; otherwise a default size is used.