3 if [ $# -ne 3 -o "$1" = "-h" -o "$1" = "--help" ]; then
4 echo "$0 <folder_in> <template_file> <suffix>"
12 w=$(identify -format "%w" ${fold}/00${sfx}.png)
13 h=$(identify -format "%h" ${fold}/00${sfx}.png)
15 wt=$(identify -format "%w" "${tmpl}")
16 ht=$(identify -format "%h" "${tmpl}")
21 for card in $(seq 0 39); do
22 convert "$tmpl" $(printf "%s/%02d%s.png" "$fold" "$((seed * 10 + card))" "$sfx") \
23 -geometry +${x}+${y} -composite $(printf "%s/%02d_bord%s.png" "$fold" "$((seed * 10 + card))" "$sfx")