summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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