blob: 60c1b8ad892ddb6806b4aa50b2c48ab132e5310d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|