diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-10-22 12:53:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-19 00:05:34 +0100 |
commit | 719d61982953caf61c0df7776347e13105a2e8b2 (patch) | |
tree | 4e11a9d0c502264f4169de97914fca6ccaf9ef22 /tools/build_mats.sh | |
parent | 8d8d6db547653dff6ffb34fdf9336317da50121e (diff) | |
download | nevsky-719d61982953caf61c0df7776347e13105a2e8b2.tar.gz |
Add asset rendering scripts.
Diffstat (limited to 'tools/build_mats.sh')
-rw-r--r-- | tools/build_mats.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/build_mats.sh b/tools/build_mats.sh new file mode 100644 index 0000000..a9e348b --- /dev/null +++ b/tools/build_mats.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -x + +mkdir -p tmp/mat +mkdir -p output300 + +if [ ! -f ../HIRES/raw_mat_01.1200.png ] +then + gs -sDEVICE=png16m -r1200 -o ../HIRES/raw_mat_%02d.1200.png "../HIRES/Lord Mats-FINAL-nf.pdf" +fi + +for F in ../HIRES/raw_mat_*.1200.png +do + convert -colorspace RGB -scale 25% -colorspace sRGB $F ${F/.1200.png/.png} +done + +# crop: 150,150 to 1650,1650 = 1500x1500 + +# ARGS="-gravity Center -crop 1500x1500+0+0 +repage -background #d0bf7d -flatten" +ARGS="-gravity Center -crop 1440x1440+0+0 +repage -background #d0bf7d -flatten" + +convert ../HIRES/raw_mat_01.png $ARGS output300/mat_russian_aleksandr.png +convert ../HIRES/raw_mat_02.png $ARGS output300/mat_russian_andrey.png +convert ../HIRES/raw_mat_03.png $ARGS output300/mat_russian_domash.png +convert ../HIRES/raw_mat_04.png $ARGS output300/mat_russian_gavrilo.png +convert ../HIRES/raw_mat_05.png $ARGS output300/mat_russian_vladislav.png +convert ../HIRES/raw_mat_06.png $ARGS output300/mat_russian_karelians.png +convert ../HIRES/raw_mat_07.png $ARGS output300/mat_teutonic_yaroslav.png +convert ../HIRES/raw_mat_08.png $ARGS output300/mat_teutonic_knud_and_abel.png +convert ../HIRES/raw_mat_09.png $ARGS output300/mat_teutonic_rudolf.png +convert ../HIRES/raw_mat_10.png $ARGS output300/mat_teutonic_heinrich.png +convert ../HIRES/raw_mat_11.png $ARGS output300/mat_teutonic_hermann.png +convert ../HIRES/raw_mat_12.png $ARGS output300/mat_teutonic_andreas.png +convert ../HIRES/raw_mat_13.png $ARGS output300/mat_battle.png |