note 92529 added to imagick.installation
| From: | Ultimater at gmail dot com | Date: | Tue, 28 Jul 2009 14:41:56 +0000 |
| Subject: | note 92529 added to imagick.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158827@lists.php.net to get a copy of this message | ||
Installing Imagick on Windows isn't too hard. I followed the guide at http://valokuva.org/?page_id=50 and managed to install it
without too much sweat.
1. Visit http://imagemagick.org/script/binary-releases.php#windows
and download "ImageMagick-6.5.4-6-Q16-windows-dll.exe"
2. Pick a version at http://valokuva.org/outside-blog-content/imagick-windows-builds/
The directories are in YYMMDD format. The latest version that worked for me was 2008-Jul-09 so
download 080709/php_imagick_dyn-Q16.dll respectively.
3. Rename php_imagick_dyn-Q16.dll to "php_imagick.dll" and move it to php/ext
4. open php.ini, and make sure
extension=php_imagick.dll
appears in the file and uncommented then resave.
Note: phpinfo() will tell you the location of the loaded php.ini file.
5. Re-start your webserver.
That's it, a simple test will tell you if your installation was successful.
<?php
$im = new Imagick();
$im->newPseudoImage(100, 100, "magick:rose");
$im->setImageFormat("png");
$im->roundCorners(5,3);
$type=$im->getFormat();
header("Content-type: $type");
echo $im->getimageblob();
?>
----
Server IP: 209.41.74.194
Probable Submitter: 76.94.233.193
----
Manual Page -- http://www.php.net/manual/en/imagick.installation.php
Edit -- https://master.php.net/note/edit/92529
Del: integrated -- https://master.php.net/note/delete/92529/integrated
Del: useless -- https://master.php.net/note/delete/92529/useless
Del: bad code -- https://master.php.net/note/delete/92529/bad+code
Del: spam -- https://master.php.net/note/delete/92529/spam
Del: non-english -- https://master.php.net/note/delete/92529/non-english
Del: in docs -- https://master.php.net/note/delete/92529/in+docs
Del: other reasons-- https://master.php.net/note/delete/92529
Reject -- https://master.php.net/note/reject/92529
Search -- https://master.php.net/manage/user-notes.php