Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
330 views
in Technique[技术] by (71.8m points)

php - How to install ImageMagick for WAMP 2.5

WAMP does not come with ImageMagick PHP extension installed, how do I install it manually? All the tutorials I have found seem outdated and too confusing.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I got ImageMagick to work on WAMP 2.5 on Windows 8.1 . Here's what I did.

  1. Download the latest ImageMagick here: http://imagemagick.org/script/download.php#windows

  2. Install it here (It should be ticked by default, but make sure you tick the "Add application directory to your system path" when installing): C:imagemagick

  3. Go to the latest folder created and download the latest zip file from here (with x64 or x86 matching your ImageMagick install file): http://windows.php.net/downloads/pecl/releases/imagick/

  4. Extract the php_imagick.dll from that file to here: C:wampinphpphp5.5.12ext

  5. Open php.ini file in text editor from here C:wampinapacheapache2.4.9in

  6. Search for commented line "Windows Extensions" and under the extensions list (for me the last one is extension=php_pdo_sqlite.dll) add: extension=php_imagick.dll

Then RESTART your computer and ImageMagick should work, it did for me at least.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...