From ab4bfae83672f4aa378cc65ff28394e70c01c25e Mon Sep 17 00:00:00 2001 From: famfo Date: Fri, 26 Nov 2021 12:26:18 +0100 Subject: [PATCH] [frog] We are going to space --- gen_png.py | 3 +- svg/frog_astronaut.svg | 168 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 170 insertions(+), 1 deletion(-) create mode 100644 svg/frog_astronaut.svg diff --git a/gen_png.py b/gen_png.py index a950d19..44858f7 100644 --- a/gen_png.py +++ b/gen_png.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 import glob import ntpath @@ -18,7 +19,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", "-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"]) diff --git a/svg/frog_astronaut.svg b/svg/frog_astronaut.svg new file mode 100644 index 0000000..c2d87d2 --- /dev/null +++ b/svg/frog_astronaut.svg @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +