Configure ImageMagick and Imagick in PHP under win7

Source: Internet
Author: User
Tags imagemagick
: This article describes how to configure ImageMagick and Imagick in PHP under win7. if you are interested in PHP Tutorial, refer to it. 1. download ImageMagick: you have selected imagemagick-6.9.2-0-q16-x64-dll.exe.

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

2. install ImageMagick

Installation directory C: \ imagemagick \

Select "Add tosystem path"


3. test whether the installation is successful.

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

Convert-version: detects installed version information.

If the prompt "convert is not an internal or external command, or the previous" Add to system path "is not selected, you can Add the path to the system environment variable on your own.

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

To call the API (API address: http://php.net/manual/en/book.imagick.php), continue

4. download Imagick 3.3.0RC1

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

5. decompress Imagick

1) copy php_imagick.dll to the php Extension folder, for example, D: \ php \ ext.

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

3) copy CORE_RL _ *. dll in the extracted file to C: \ Windows \ System32

Otherwise


4) Add Environment variables:

MAGICK_HOME C: \ ImageMagick \ modules \ coders

Otherwise, the ImageMagick number of supported formats may be 0.


6. restart your computer and view the phpinfo () information. if so, the operation is successful !!!! However, we have to continue with image processing. If the supported types are missing in supported formats, try another Imagick package.


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The above describes how to configure ImageMagick and Imagick in PHP under win7, including some content, and hope to help those who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.