Creating a resulting image with 24 rotations of the source image (every 15°)
Posted: 2018-01-25T10:52:28-07:00
Hi,
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.
I also found this script, but it creates a gif file, and I'd like to keep a png:
If you think it's possible, please let me know.
Thanks.
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.