2021-03-29 10:36:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-04-10 23:04:18 +02:00
|
|
|
make extracteur
|
2021-03-29 10:36:59 +02:00
|
|
|
|
2021-04-10 23:04:18 +02:00
|
|
|
IMGS="foo.fimg"
|
2021-03-29 10:36:59 +02:00
|
|
|
|
2021-04-10 23:04:18 +02:00
|
|
|
for idx in $(seq 0 69)
|
|
|
|
do
|
|
|
|
outf=$(printf "%s/X%04d.png" "/tmp" $idx)
|
|
|
|
echo $outf
|
|
|
|
|
|
|
|
x=$(( idx * 4 ))
|
|
|
|
y=$(( idx + 80 ))
|
|
|
|
|
|
|
|
./extracteur $IMGS 320,200,${x},${y} $outf
|
|
|
|
done
|
|
|
|
|
|
|
|
convert -delay 10 /tmp/X????.png foo.gif
|
2021-03-29 10:36:59 +02:00
|
|
|
|