--- /dev/null
+#!/bin/bash
+
+if [ $# -ne 3 -o "$1" = "-h" -o "$1" = "--help" ]; then
+ echo "$0 <folder_in> <template_file> <suffix>"
+ exit 1
+fi
+
+fold=$1
+tmpl=$2
+sfx=$3
+
+w=$(identify -format "%w" ${fold}/00${sfx}.png)
+h=$(identify -format "%h" ${fold}/00${sfx}.png)
+
+wt=$(identify -format "%w" "${tmpl}")
+ht=$(identify -format "%h" "${tmpl}")
+
+x=$(((wt - w) / 2))
+y=$(((ht - h) / 2))
+
+for card in $(seq 0 39); do
+ convert "$tmpl" $(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") \
+ -geometry +${x}+${y} -composite $(printf "%s/%02d_bord%s.png" "$fold" "$((seed * 10 + card))" "$sfx")
+done
--- /dev/null
+#!/bin/bash
+./bin/borderizer.sh briskin5/img briskin5/img/with_border_template.png ""
+./bin/spriter.sh briskin5/img "_bord" briskin5/img/cards_xx
+geeqie briskin5/img/cards_xx_bord.png
--- /dev/null
+#!/bin/bash
+#
+# Max height in play area 121 px
+#
+
+if [ $# -ne 3 -o "$1" = "-h" -o "$1" = "--help" ]; then
+ echo "$0 <folder_in> <suffix> <file_out_without_extension>"
+ exit 1
+fi
+fold=$1
+sfx=$2
+fou=$3
+
+w=$(identify -format "%w" ${fold}/00${sfx}.png)
+h=$(identify -format "%h" ${fold}/00${sfx}.png)
+
+convert -size $((w * 8))x$((h * 6)) xc:none ${fou}${sfx}_bg.png
+
+argz="${fou}${sfx}_bg.png"
+
+for seed in 0 1 2 3; do
+ for card in $(seq 0 9); do
+ x=$(((seed * 2 + card / 5) * w))
+ y=$(((card % 5) * h))
+ argz="$argz $(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") -geometry +${x}+${y} -composite "
+ done
+done
+
+argz="$argz ${fou}${sfx}.png"
+convert $argz