Page 1 of 1

Posted: 2006-07-20T08:27:18-07:00
by magick
A good solution would be to write a script to rotate the image. A shell script or Perl script would be a good place to start.

Posted: 2006-07-20T18:00:59-07:00
by anthony
For an example see the animate rottaion creation script in IM examples
http://www.cit.gu.edu.au/~anthony/graph ... animations

EG: http://www.cit.gu.edu.au/~anthony/graph ... ate_rotate

Posted: 2006-07-23T11:52:51-07:00
by Bonzo
I have done a simple example in php as well, needs some work but you will get the idea.

http://www.rubblewebs.co.uk/imagemagick/animation.php

If you are going to make 360 images it could take some time ! My server hung up on 23 images but when I checked the folder on the server the job was completed so I stopped the page and checked the final animation and it had worked OK.

Posted: 2006-07-23T18:28:06-07:00
by anthony
My one animation is pretty smooth but only using 15 degree increments.

However it looks as if you are not handling the image size changes due to the rotation, which is why you image is wandering all over the place.

Posted: 2006-07-24T10:58:20-07:00
by Bonzo
I was mainly trying this out for Liza and working it into a php method.

When I got home today I had recived and email from my hosts about the code slowing down the server; so if you my example be careful !!!!!

I was going to condense the code and improve it but I think I will leave it now to avoid any more slapped wrists.

With the image wandering I had assumed if I picked on point to rotate around it would work Ok. But I was wondering why it didn't.

Posted: 2006-07-24T21:12:29-07:00
by anthony
The -rotate resizes images to fit the rotation. That is the center point doesn't move but the image size changes.

See IM Examples 'Distorting Images' for ways of dealing with this.

As for slowing your server. Of course it will do that if you don't provide any delays in your animation. That is why a 1 degree rotation is probably a little too small.