Imagick php windows

后端 未结 7 564
甜味超标
甜味超标 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:39

    I'm quite sure this is to do with not having the module loaded correctly or the .dll being placed in a improper location.

    You can use PHP's internal function extension_loaded() to check prior to using the class,

    
    

    That's a method you can check if the module is even being reconsigned by PHP at all. PHP also provides a function to view your current extensions get_loaded_extensions():

    
    

    Make sure you do:

    • Check your correct extension library folder location within your phpinfo()
    • Perform a hard restart of your xmapp/wamp server.
    • If you're on PHP 5.4 or upwards (Like yourself!), see site below for the updated binaries

    After researching too, Imagick does seem to have trouble with PHP 5.3 or upwards; Download new DLL's from this site below (Unofficial):

    http://www.peewit.fr/imagick/

    Also found other StackOverFlow Articles that have the same problem:

    Stackoverflow: Trying to get imagick running on PHP 5.4.3 at Windows x64

    Alternatively you're able to use the GD extension to more or less accomplish some of the same functions you require. I do believe GD is a more widely supported module/extension in more recent versions of PHP.

提交回复
热议问题