From ca17112af44c9b2fe499948beb22076c4effd938 Mon Sep 17 00:00:00 2001 From: Riesi Date: Tue, 21 Jan 2020 18:03:01 +0100 Subject: [PATCH] [util] some frogs are not square and some apps require all sides to be <= max_pixel --- gen_png.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen_png.py b/gen_png.py index 97bc459..d40ea76 100644 --- a/gen_png.py +++ b/gen_png.py @@ -18,5 +18,6 @@ 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/"+str(s)+"/"+name+".png", "-f", 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", "-z", "-C", "-w", str(s), "--export-file=./png/"+str(s)+"/"+name+".png", f])