Imagick php windows

后端 未结 7 582
甜味超标
甜味超标 2020-12-30 14:55

I am trying to use iMagick in Symfony2.

I am using PHP 5.4.16 and all i have done :

1-Copy php_imagick_nts.dll from php5-4 directory from the extracted http:

7条回答
  •  星月不相逢
    2020-12-30 15:33

    I spent many hours trying to make Imagick work, finally I got it.

    My installation instructions

    1. Install WAMP 32bit (even if you running 64bit system you must use 32bit version of WAMP)
    2. Install ImageMagick to C:/imagemagick, use this file: https://www.dropbox.com/s/i2mhrhd7sp0ilzk/ImageMagick-6.8.0-3-Q16-windows-dll.exe
    3. Put DLL with Imagick into extension folder of PHP, e.g. D:\wamp32\bin\php\php5.4.16\ext, I used this file: https://www.dropbox.com/s/ayankf850l08rm2/php_imagick.dll
    4. In php.ini put line "SetEnv MAGICK_HOME C:/imagemagick" without quotes
    5. Better restart PC

    I use Wamp 2.4, PHP 5.4.16, Apache 2.4.4, ImageMagick 6.8.0-3 2012-10-24 Q16, Imagick 3.1.0RC2 - all 32bit, OS Win8 64bit

    Now it should work and you should see Imagick extension loaded in phpinfo.

    I tried a lot of versions of ImageMagick, but newer versions didn't work, 6.8.0-3-Q16-windows-dll works fine.

    Symfony2

    In Symfony2 use Imagick like this:

    $im = new \Imagick('image.jpg');
    

提交回复
热议问题