Install Imagick for PHP and Apache on Windows

后端 未结 6 990
醉梦人生
醉梦人生 2020-11-27 05:04

Steps I\'ve taken so far:

  1. I have installed Imagick on my Win7 machine, and it\'s installed and running properly via command line.
  2. I\'ve extracted the
6条回答
  •  佛祖请我去吃肉
    2020-11-27 05:27

    I finally got it working, here is what I had to do: (referenced from http://refreshless.com/blog/imagick-pecl-imagemagick-windows/)

    1. Install an older version of ImageMagick (6.7.7-5 Q16) available from this website.
    2. Install the PECL Imagick DLL files (php_imagick-3.1.2-5.6-ts-vc11-x86.zip) downloaded from this webpage, putting the php_imagick.dll file in the PHP ext directory, and the CORE_RL_*_.dll files in the Apache bin directory.
    3. Add an Environement variable called MAGICK_HOME to the machine, with the value of [ImageMagick install dir]\modules\coders.
    4. Restart apache and check phpinfo( ).

    If this doesn't work for you, try different versions of the ImageMagick binaries, and different versions of the PECL libraries.

提交回复
热议问题