I currently have an image I'd like to rotate (every 15°) to create a series of images I will use later on.

It would be nice to have that series in a single image.
I made a simple bash script that creates the 24 images, but would like to know how to do it in a single image and a single command if possible.
Code: Select all
convert -rotate "15" c.png c15.png
Code: Select all
#!/bin/sh
#
# Create a rotating figure using Distort SRT transformations
#
command='convert -delay 10 c.png -virtual-pixel white'
for i in `seq 15 15 360`; do
command="$command \\( -clone 0 -distort SRT $i \\)"
done
command="$command -delete 0 -loop 0 animated_distort_rot.gif"
eval $command
chmod 644 animated_distort_rot.gif

If you think it's possible, please let me know.
Thanks.