Assuming each card is in its own group (the <g> element) without dependencies outside the group, then:
- copy the root element svg of the source file to 52 files (
<svg ...></svg> ) - for each card:
- add the group belonging to the map as a child of the root svg in one of the new svg files created in step 1.
- update the viewBox attribute (or width and height) in the svg root element to fit the map (maybe this can be done automatically by svg scour )
source share