2

I have one round image. I need to rotate this image in 1 degree steps. i.e. 60 rotated images of single image. How may I do this with imagemagick ?

2 Answers 2

5

Yes it is possible.

This one will create a right rotating pic series.

for i in $(seq -w 1 60)
do 
    convert -rotate ${i} orig-image.jpg pic_rotated_${i}.jpg
done

If you would like to have it left rotated, just put a - sign in the -rotate value.

for i in $(seq -w 1 60)
do 
    convert -rotate -${i} orig-image.jpg pic_rotated_${i}.jpg
done

I chose seq to generate the number series with leading zero which makes it easier to sort. One could also use {1..60} instead of $(seq...).

1
  • Ah, nine seconds before me. Should have answered before reviewing. Commented Sep 24, 2017 at 9:38
0

Yes it is possible. If you need more information, lookup convert -rotate in the manual

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.