From 3b3fece21f8ab0e934f198f1f57a06a21600338c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 2 Dec 2023 16:03:32 +0100 Subject: Dice images. --- tools/renderdice.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tools/renderdice.sh (limited to 'tools/renderdice.sh') 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 -- cgit v1.2.3