From 18e28001e84eac02a3e11ba77b5e7980911691b6 Mon Sep 17 00:00:00 2001 From: Riesi Date: Tue, 21 Apr 2020 21:07:08 +0200 Subject: [PATCH] [util] move script to inkscape-git for mirror symmetry --- gen_png.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gen_png.py b/gen_png.py index d40ea76..a950d19 100644 --- a/gen_png.py +++ b/gen_png.py @@ -18,6 +18,7 @@ sizes = [16, 32, 64, 128, 256, 512, 1024, 4096] for f in files: name = ntpath.basename(f).replace(".svg", "") for s in sizes: - subprocess.run(["inkscape", "-z", "-C", "-w", str(s), "-e", "./png/fixed_width/"+str(s)+"/"+name+".png", "-f", f]) - subprocess.run(["inkscape", "-z", "-C", "-h", str(s), "-e", "./png/fixed_height/"+str(s)+"/"+name+".png", "-f", f]) -# subprocess.run(["inkscape", "-z", "-C", "-w", str(s), "--export-file=./png/"+str(s)+"/"+name+".png", f]) +# subprocess.run(["inkscape", "-z", "-C", "-w", str(s), "-e", "./png/fixed_width/"+str(s)+"/"+name+".png", "-f", f]) +# subprocess.run(["inkscape", "-z", "-C", "-h", str(s), "-e", "./png/fixed_height/"+str(s)+"/"+name+".png", "-f", f]) + subprocess.run(["inkscape", f, "-C", "-w", str(s), "--export-filename=./png/fixed_width/"+str(s)+"/"+name+".png"]) + subprocess.run(["inkscape", f, "-C", "-h", str(s), "--export-filename=./png/fixed_height/"+str(s)+"/"+name+".png"])