PHP configuration ImageMagick and Imagick under win7

WBOY
Release: 2016-07-29 09:15:54
Original
1354 people have browsed it

1. Download ImageMagick: I personally chose the version ImageMagick-6.9.2-0-Q16-x64-dll.exe

Address http://imagemagick.org/script/binary-releases.php#windows

2. Installation ImageMagick

Installation directory C:imagemagick

Need to select "Add tosystem path"


3. Test whether the installation is successful

Open the command line (run->"CMD"->Enter), Enter "convert" and press Enter to view the convert command options

convert -version to find out the installed version information

If it prompts "convert is not an internal or external command, it may also be the previous step "Add to system" path" is not selected, you can add the path to the system environment variable by yourself

If you only want to execute the convert command through exec(), the following steps can be omitted;

If you need to call the API (API address: http://php. net/manual/en/book.imagick.php), continue below

4. Download Imagick Version imagick 3.3.0RC1

Address http://pecl.php.net/package/imagick

5. Unzip Imagick

1) Copy php_imagick.dll to the php extension folder, such as: D:phpext

2) Modify php.ini and add extension=php_imagick.dll

3) Copy CORE_RL_*.dll in the unzipped file Go to C:WindowsSystem32

Otherwise it may appear


4) Add environment variable:

MAGICK_HOME C:ImageMagickmodulescoders

Otherwise it may appear ImageMagick number of supported formats is 0


6 . Restart the computer and check the phpinfo() information, as shown below! ! But you still have to do the image processing. If the supported formats are missing, you can try another Imagick package.


Copyright Statement: This article is the original article of the blogger and may not be reproduced without the permission of the blogger

. The above introduces the PHP configuration of ImageMagick and Imagick under win7, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!