2021-03-29 19:36:59 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-04-11 08:04:18 +11:00
|
|
|
make extracteur
|
2021-03-29 19:36:59 +11:00
|
|
|
|
2021-04-11 08:04:18 +11:00
|
|
|
IMGS="foo.fimg"
|
2021-03-29 19:36:59 +11:00
|
|
|
|
2021-04-11 08:04:18 +11:00
|
|
|
for idx in $(seq 0 69)
|
|
|
|
do
|
|
|
|
outf=$(printf "%s/X%04d.png" "/tmp" $idx)
|
2021-05-10 10:15:29 +11:00
|
|
|
echo "work on "$outf
|
2021-04-11 08:04:18 +11:00
|
|
|
|
|
|
|
x=$(( idx * 4 ))
|
|
|
|
y=$(( idx + 80 ))
|
|
|
|
|
2021-05-10 10:15:29 +11:00
|
|
|
./extracteur $IMGS 256,128,${x},${y} $outf
|
|
|
|
error=$?
|
|
|
|
if [ 0 -ne $error ] ; then
|
|
|
|
echo error $error
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
echo
|
|
|
|
|
2021-04-11 08:04:18 +11:00
|
|
|
done
|
|
|
|
|
|
|
|
convert -delay 10 /tmp/X????.png foo.gif
|
2021-03-29 19:36:59 +11:00
|
|
|
|