summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-03 23:24:13 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:51 +0100
commit44a5fe4d1a1876e23aab1bd963e5b523943b44a9 (patch)
tree6b34bcd8d1c23093a03073946647b1f4dc1dce05 /tools
parentcc3b0aec032a16bdcc8010825368bb1ebfced1d6 (diff)
downloadplantagenet-44a5fe4d1a1876e23aab1bd963e5b523943b44a9.tar.gz
Fix card CSS classes and definitions.
Rename CC cards.
Diffstat (limited to 'tools')
-rw-r--r--tools/render_cards.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/render_cards.sh b/tools/render_cards.sh
index e9c13a2..f172b0b 100644
--- a/tools/render_cards.sh
+++ b/tools/render_cards.sh
@@ -8,20 +8,20 @@ mkdir -p HIRES/cards75
mkdir -p HIRES/cards150
mkdir -p cards.1x cards.2x
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/aow_lancaster_%d.png "HIRES/Plantagenet-AoW-Lanc (11).pdf"
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/aow_york_%d.png "HIRES/Plantagenet-AoW-York (15).pdf"
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/cc_lancaster_%d.png "HIRES/PLNT_CC_Lancaster-Front-HiRes.pdf"
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/cc_york_%d.png "HIRES/PLNT_CC_YORK-Front-HiRes.pdf"
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/lord_lancaster_%d.png "HIRES/PLNT_LordCards_Lancaster-HiRes.pdf"
-# gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/lord_york_%d.png "HIRES/PLNT_LordCards_York-HiRes.pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/aow_lancaster_%d.png "HIRES/Plantagenet-AoW-Lanc (11).pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/aow_york_%d.png "HIRES/Plantagenet-AoW-York (15).pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/cc_lancaster_%d.png "HIRES/PLNT_CC_Lancaster-Front-HiRes.pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/cc_york_%d.png "HIRES/PLNT_CC_YORK-Front-HiRes.pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/lord_lancaster_%d.png "HIRES/PLNT_LordCards_Lancaster-HiRes.pdf"
+gs -dUseBleedBox -sDEVICE=png16m -r1200 -o HIRES/cards/lord_york_%d.png "HIRES/PLNT_LordCards_York-HiRes.pdf"
for F in HIRES/cards/*.png
do
B=$(basename $F)
echo $B
- # crop to 186x261 (actual size is 187.5 x 263 - we trim 0.75 to 1 pixel off each margin)
- convert -colorspace RGB +repage -gravity Center -crop 2976x4176+0+0 -resize 12.5% -colorspace sRGB $F HIRES/cards150/$B
- convert -colorspace RGB +repage -gravity Center -crop 2976x4176+0+0 -resize 6.25% -colorspace sRGB $F HIRES/cards75/$B
+ # crop to 186x260 (actual size is 187.5 x 263 - we trim 0.75 to 1 pixel off each margin)
+ convert -colorspace RGB +repage -gravity Center -crop 2976x4160+0+0 -resize 12.5% -colorspace sRGB $F HIRES/cards150/$B
+ convert -colorspace RGB +repage -gravity Center -crop 2976x4160+0+0 -resize 6.25% -colorspace sRGB $F HIRES/cards75/$B
done
function mv_card {
@@ -29,11 +29,11 @@ function mv_card {
cp HIRES/cards75/$1.png cards.1x/$2.png
}
-mv HIRES/cards75/aow_* cards.1x
-mv HIRES/cards150/aow_* cards.2x
+cp HIRES/cards75/aow_* cards.1x
+cp HIRES/cards150/aow_* cards.2x
-# mv HIRES/cards75/lord_* cards.1x
-# mv HIRES/cards150/lord_* cards.2x
+cp HIRES/cards75/lord_* cards.1x
+cp HIRES/cards150/lord_* cards.2x
mv_card lord_york_1 lord_york_york
mv_card lord_york_2 lord_york_march