How to install Imagick/imagemagick PHP extension on windows 7

╄→гoц情女王★ 提交于 2019-11-26 18:37:38

Check permissions on the .dll file to make sure the Apache user has read access to the file. Better change the permission of the [PHP]/extension directory.

To change the permission

  1. Right click the file(s) or folder(s)
  2. Select "Properties"
  3. Select "Security" tab
  4. Click on "Edit" button.

Change the permission of user to Full Control.

  • Download the binaries on the PECL page (look for the "DLL" links).
  • Open the archive, copy all the *.dll files to the "php\ext" directory.
  • Add the extension to your php.ini:

    • Usually you should add extension=php_imagick.dll.
    • On some WAMP platforms, it might be instead extension=ext/php_imagick.dll. Just look how the existing extensions are defined and do alike.
  • Restart web server.


At this point, Imagick is installed, but you will probably encounter this error:

ImagickException: NoDecodeDelegateForThisImageFormat

It means you have to install ImageMagick as well:

  • On this page, download the ImageMagick archive corresponding to the Imagick you have installed (MSVC version, CPU architecture).
  • Open "bin" directory of this archive, copy the *.dll files to the "php\ext" directory. For example, you'll need IM_MOD_RL_jpeg_.dll for JPEG handling.
i0707

Here are Windows binaries for imagick 2.3.0 compiled with VC6 (you can find VC9 binaries at Mikko’s blog) against PHP 5.3.2 (API20090626).

Try this link

funktioneer

I've research this solution, here you will find all necessary libraries. Download this http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe

Find your DLLs here http://www.peewit.fr/imagick/

To know which library fit your needs easily run phpinfo()

There you find the following row e.g.

Compiler MSVC9 (Visual C++ 2008)

The MSVC9 tells you that it's compiled with Visual C9, so you need to download the VC9 version. Thats all.

Have nice day, takes me several hours of research.

This may be hitting a nail with a 5-pound hammer, but I like Cygwin, a Unix-like environment for Windows; it includes imagemagick as a package.

Just use chocolatey

choco install imagemagick

Done

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!