added a coouple of scripts to help me vectorize multi-layer photoshop files into svg

This commit is contained in:
jorgevasquezp
2019-01-10 18:43:26 -08:00
parent 36e8bd0c23
commit 92495623fc
2 changed files with 87 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/python
import svgutils.compose as c
import svgutils.transform as st
import sys,os
outfile = sys.argv[-1]
infiles = sys.argv[1:-1]
insvgs = [c.SVG(i) for i in infiles]
figure = c.Figure(
"512px", "512px",
*insvgs
)
figure.save( os.getcwd()+os.sep+outfile )
#print ('Number of arguments:', len(sys.argv), 'arguments.')
#print ('Argument List:', str(sys.argv))