我希望用户能够顺时针或逆时针永久旋转图像文件。我已经尝试过 imagejpeg($rotate) 但似乎无法使其正常工作。
<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>
我试图让用户能够选择单选按钮方向并单击“提交”。然后显示的图像将更新旋转到他们选择的任何方向,并在再次使用时永久保持这种状态。有什么帮助或方向吗?
<img src=\"uploads/$user/$folder/$image\"/></a>";