I want a user to be able to permanently rotate an image file clockwise or counter clockwise. I have tried imagejpeg($rotate) but can’t seem to make it work right.
<form method="GET" action="rotate.php">
Rotate:<input type="radio" name="rotate" value="clockwise">Clockwise
<input type="radio" name="rotate" value="counterclockwise">Counter clockwise
<input type="Submit" name="Submit1"/>
</form>
I am trying to allow the user to be able to choose the radio button direction and click “Submit”. Then the displayed image will update rotated to whichever direction they chose and stay that way permanently whenever it is used again. Any help or direction?
<img src=\"uploads/$user/$folder/$image\"/></a>";
use
imagerotate()this will rotate image permanently.http://php.net/manual/en/function.imagerotate.php
Or you can use this using jquery
http://www.linein.org/examples/jquery_rotate/