rotate image 0 to 360
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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
http://www.cit.gu.edu.au/~anthony/graph ... animations
EG: http://www.cit.gu.edu.au/~anthony/graph ... ate_rotate
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/