note 87177 modified in function.imagick-rotateimage by thiago

From: Date: Mon, 24 Nov 2008 11:46:03 +0000
Subject: note 87177 modified in function.imagick-rotateimage by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146867@lists.php.net to get a copy of this message
If you want to rotate an image by a certain degree you can do this: <?php header('content-type: image/jpeg'); $imagick = new Imagick(); $imagick->readImage('castle.jpg'); $imagick->rotateImage(new ImagickPixel(), 90); print $imagick->getImage(); ?> --was-- Just an update to the previous post. The last line should use the $imagick object. This works. header('content-type: image/jpeg'); $imagick = new Imagick(); $imagick->readImage('castle.jpg'); $imagick->rotateImage(new ImagickPixel(), 90); print $imagick->getImage(); http://php.net/manual/en/function.imagick-rotateimage.php

« previous php.notes (#146867) next »