Rotate на изображение

Bummer

Registered
Може ли код за rotate на изображение и после след като е завъртяно, изображението да бъде записвано в даденото положение ?
 
Код:
<?php
// The file you are rotating
$image = 'myfile.jpg';

//How many degrees you wish to rotate
$degrees = 180;

// This sets the image type to .jpg but can be changed to png or gif
header('Content-type: image/jpeg') ;

// Create the canvas
$source = imagecreatefromjpeg($image) ;

// Rotates the image
$rotate = imagerotate($source, $degrees, 0) ;

// Outputs a jpg image, you could change this to gif or png if needed
imagejpeg($rotate) ;
?>

http://php.data.bg/manual/en/function.imagerotate.php
 

Back
Горе