//define image path$filename="image.jpg";// Load the image$source = imagecreatefromjpeg($filename);// Rotate$rotate = imagerotate($source, $degrees, 0);//and save it on your server...imagejpeg($rotate, "myNEWimage.jpg");
看一眼:
imagerotate()
和:
file_put_contents()



