added a coouple of scripts to help me vectorize multi-layer photoshop files into svg
This commit is contained in:
Executable
+17
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user