[util] some frogs are not square and some apps require all sides to be

<= max_pixel
This commit is contained in:
Riesi 2020-01-21 18:03:01 +01:00
parent d49add526f
commit ca17112af4
1 changed files with 2 additions and 1 deletions

View File

@ -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])