how to rotate an image using php code?
So if for instance you want to rotate an image by 90 degrees, you can use:
<?php
$move90 = imagerotate($myimage,90);
//$myimage is the reference to the loaded image, eg through imagecreatefromjpeg
?>
...Then just output that image as you would normally with, for instance, imagejpeg() and there you go!
Comments on this Question/Answer
How can i set the image path to variable $myimage. how i include tag into that code..By: anu, 21 Sep 2009 06:25:44
Reply to comments / post your own comment >>>
ASK A QUESTION
More images PHP Questions
Please can any one help me to solve this problem how to comparer two images and show the dissimilarities in third image in php code?I recently updated from shared servers to virtual dedicated, I now cannot see any of the images I try to upload. The hosting company says that the script for the images are in the root directory but the images are not. The programmer said he didn't c
How can I add text to an image?
How can I find the width and height of an image resource?
how can i load images with php?
