convert everything to path
ungroup everything
union everything
crop canvas
update metadata
save as optimized svg