summaryrefslogtreecommitdiff
path: root/tools/renderdice.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-02 16:03:32 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-02 16:03:41 +0100
commit3b3fece21f8ab0e934f198f1f57a06a21600338c (patch)
tree503034217bf3f6ef025f1c7ffad9754e842faf0d /tools/renderdice.sh
parent26028ca0bc78c6ad351329548db34f4591cd87d5 (diff)
downloadvotes-for-women-3b3fece21f8ab0e934f198f1f57a06a21600338c.tar.gz
Dice images.
Diffstat (limited to 'tools/renderdice.sh')
-rw-r--r--tools/renderdice.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/renderdice.sh b/tools/renderdice.sh
new file mode 100644
index 0000000..d2f91c4
--- /dev/null
+++ b/tools/renderdice.sh
@@ -0,0 +1,9 @@
+inkscape --export-dpi=1920 -o d4.png tools/d4.svg
+inkscape --export-dpi=1920 -o d6.png tools/d6.svg
+inkscape --export-dpi=1920 -o d8.png tools/d8.svg
+for F in d?.png
+do
+ convert -colorspace RGB -resize 6.25% -colorspace sRGB $F images/${F/.png/.1x.png}
+ convert -colorspace RGB -resize 12.5% -colorspace sRGB $F images/${F/.png/.2x.png}
+done
+rm d4.png d6.png d8.png