3 # Max height in play area 121 px
6 if [ $# -ne 3 -o "$1" = "-h" -o "$1" = "--help" ]; then
7 echo "$0 <folder_in> <suffix> <file_out_without_extension>"
14 w=$(identify -format "%w" ${fold}/00${sfx}.png)
15 h=$(identify -format "%h" ${fold}/00${sfx}.png)
17 convert -size $((w * 9))x$((h * 5)) xc:none ${fou}${sfx}_bg.png
19 argz="${fou}${sfx}_bg.png"
21 for seed in 0 1 2 3 4; do
22 for card in $(seq 0 9); do
23 x=$(((seed * 2 + card / 5) * w))
25 argz="$argz $(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") -geometry +${x}+${y} -composite "
26 if [ $seed -eq 4 ]; then
32 argz="$argz ${fou}${sfx}.png"