PHP : Function Reference : Imagick Image Library : Imagick::rotateImage
peter dot rekdal dot sunde
If you want to rotate an image by a certain degree you can do this:
header('content-type: image/jpeg');
$imagick = new Imagick();
$imagick->readImage('castle.jpg');
$imagick->rotateImage(new ImagickPixel(), 90);
print $image->getImage();
|