note 90576 deleted from imagick.installation by danbrown
| From: | danbrown@php.net | Date: | Wed, 29 Apr 2009 12:51:40 +0000 |
| Subject: | note 90576 deleted from imagick.installation by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153961@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Hello
I know what is your problem:
If "PHP -i" shows that Magickwand is installed but it does not appear in phpinfo() this is
because you modified the wrong PHP.ini file.
Xampp is really wicked: there are multiple PHP.ini files.
I also had this problem.
Check this and when MagickWand appears in your phpinfo() you find some samples here:
www.ioncannon.net/php/61/php-imagemagick-magickwand-examples
For example this one rotates an image by 45 degree:
$resource = NewMagickWand();
MagickReadImage( $resource, 'small_flower.jpg' );
MagickRotateImage( $resource, null, 45 );
header( 'Content-Type: image/gif' );
MagickEchoImageBlob( $resource );