summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-25 01:58:53 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-27 15:48:54 +0200
commit03bbbf223ca67bb8fa7485558e6d872e5b228424 (patch)
tree5ebb2fa8251f202993f1bd9b20fb427cbea6b350
parentc0174bdbad3b3bdfb9b13767f072cdcb97428bf1 (diff)
downloadvotes-for-women-03bbbf223ca67bb8fa7485558e6d872e5b228424.tar.gz
Asset rendering script (for reference only).
-rw-r--r--tools/render.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/render.sh b/tools/render.sh
new file mode 100644
index 0000000..60c1b8a
--- /dev/null
+++ b/tools/render.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+mkdir -p HIRES/cards800 cards200 cards100
+
+gs -r400 -sDEVICE=png16m -o map400.png HIRES/map-no-tex.pdf
+gs -r400 -sDEVICE=png16m -o map400-tex.png HIRES/map-only-tex.pdf
+convert -colorspace RGB -resize 12.5% -colorspace sRGB map400.png map-uncrop.png
+convert -colorspace RGB -resize 12.5% -colorspace sRGB map400-tex.png map-tex-uncrop.png
+convert -gravity Center -crop 2200x1700+0+0 map-uncrop.png map.png
+convert -gravity Center -crop 2200x1700+0+0 map-tex-uncrop.png map-texture.png
+
+gs -dUseArtBox -r800 -sDEVICE=png16m -o HIRES/cards800/strategy_%02d.png "HIRES/Strategy Cards FINAL-4.pdf"
+gs -dUseArtBox -r800 -sDEVICE=png16m -o HIRES/cards800/states_%02d.png "HIRES/States FINAL-3.pdf"
+gs -dUseArtBox -r800 -sDEVICE=png16m -o HIRES/cards800/support_%02d.png "HIRES/Support Cards FINAL-6.pdf"
+gs -dUseArtBox -r800 -sDEVICE=png16m -o HIRES/cards800/opposition_%02d.png "HIRES/Opposition Cards FINAL-4_2 PANDA.pdf"
+
+for F in HIRES/cards800/*.png
+do
+ B=$(basename $F)
+ echo $B
+ convert -colorspace RGB -resize 12.5% -colorspace sRGB $F cards100/$B
+ convert -colorspace RGB -resize 25% -colorspace sRGB $F cards200/$B
+done