From 03bbbf223ca67bb8fa7485558e6d872e5b228424 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 25 Oct 2023 01:58:53 +0200 Subject: Asset rendering script (for reference only). --- tools/render.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/render.sh 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 -- cgit v1.2.3