This article is mainly to share with you win7 install PHP plug-in Imagick method, first and everyone to share the installation steps, hope to help everyone.
Installation steps:
Step One: Install the expansion pack first.
The extension is installed because the extended version corresponds to the software version, and the extended version is much slower than the software version, so it is not always possible to support the latest version of the software, so it is best to choose the installed version of the ImageMagick software based on the extensions you have installed.
First imagic PHP extension package download address: Http://pecl.php.net/package/imagick
First of all, according to your own version of PHP choice, if you do not know your version can see phpinfo, below my own to give a demonstration: The following red box marked place is to note, the top is the PHP version, Mine is 5.5.30 version, the other is the server environment is x86, that is, 32-bit, if this is 64 is 64 bit, be careful. And then is the PHP security thread situation: Disabled is off, enable is on, my security thread is off, here must pay attention to the following to see what the above download page is: Here are the latest versions of Imagick PHP extensions, The required version is also indicated, the ImageMagick version supported here is 6.5.3-6.10, and the PHP version is more than 5.4. If your PHP version is lower than this, then you may need to find a lower version of the extension, and the software version is also lower, this blog post and your installation should be a discrepancy, at best, for example, the lower version of the ImageMagick is required to manually make the system variable path configuration, The automatic configuration is checked automatically when the high version is installed automatically. OK, the following into the above to give the extension download page will see such as the Display: Red box is the version of my choice, basically this is the latest and stable version so it is a good choice, of course, you can choose other versions according to their own situation, but pay attention to choose stable stable version is better, Click the blue Windows identity of the DDL to enter the version of Windows option, below. According to the above we see Phpinfo get the various parameters, here choose php5.5 version, and is non Thread safe version, and 32 bit, so should choose the version of the red box download. After the download, let's see what's Inside: the red box is used to install the Imagick extension in PHP: 1) The bottom php_ Imagick.dll into the PHP installation folder ext Extension folder 2) The above DLL file directly into the PHP installation folder, if it is phpstudy multiple versions of PHP, put in the corresponding version of their own folders, such as php55n refers to php5.5 above but not more than 5.6 version of the is to change the PHP configuration file, open the php.ini file, like that plus extension=php_imagick.dll extension configuration. After these configuration, restart the computer and the server and then open Phpinfo can see the imagick extension, if there is no imagick in Phpinfo, the identity extension indicates that no installation was successful, The likelihood of errors is that the server parameters and PHP parameters are inconsistent with the Imagick extension parameter, so check that the above versions are consistent. View PHP after successInfo Imagick details, because there is no software installed so there will be a red box logo, note here I was installed after the successful, the correct situation should be as red box logo and the part of the comment, the above display 0, the following is empty, because the ImageMagick software has not been installed, So there is no support for any kind of image processing. At this point we can also be based on the Imagick in the Phpinfo show the detailed version of the support software, below I forgot to use the red box logo, but still very good to see, Supported version is 6.9.3-6.9.7, can support down, but cannot go up, so to find 6.9.7 under the ImageMagick software version, so to find the corresponding software version according to this version, or it will cause the extension does not recognize the ImageMagick software situation, so that the red box identified by the part will always show empty and 0.
Step Two: Install ImageMagick software
Download address of official website: http://www.imagemagick.org/script/ download.php Note: The address of the official website is currently only 7.0 version of the download, but our extension is not supported so high version, so need to download from other places, I downloaded two relatively lower version below, very hard to find, there are points of trouble into the CSDN download sponsorship points, no points in the back I will upload Baidu Network disk above, password private messages to me.
Baidu Network Disk:
Links: HTTP://PAN.BAIDU.COM/S/1DF07EVF
Password: HSAC
Just choose the right version of the ImageMagick software, installation is very simple, as long as double-click, choose to install the directory, Windows recommended installation to D, it is best not to install to the C drive, and then continue to click the next step on it, it will check the auto-tick parts, do not change, The selected section automatically adds the system variable for the corresponding software in path without adding it manually. After installation, restart the server can see the above phpinfo in the Imagick part of the red box internal support image type appears, this is the installation success. If you do not have a supported type, then check the installed version of the software, this occurs only if the PATH environment variable and the software version of the problem caused, but path is automatically added, generally do not have problems, so the most likely is the software version is not the result. ImageMagick software version is divided into 64-bit and 32-bit, and then the version number, according to these two troubleshooting.
Related recommendations:
The method of using Php_imagick to realize the retro effect _php example
Imagick API Chinese Translation
Win7 PHP configuration ImageMagick and Imagick