PhpImageMagickwindows installation tutorial, phpimagemagick_PHP tutorial

Source: Internet
Author: User
Tags imagemagick windows download
PhpImageMagickwindows installation tutorial, phpimagemagick. PhpImageMagickwindows installation tutorial, phpimagemagick1, download ImageMagick open imagemagick. orgscriptbinary-releases.php # windows download the latest version, the current version is php ImageMagick windows installation tutorial, phpimagemagick

1. download ImageMagick

Open the http://imagemagick.org/script/binary-releases.php#windows to download the latest version, the current version is the ImageMagick-6.5.4-2-Q16-windows-dll.exe

The current static versions can run well on various platforms, but they are hard to understand. Therefore, you should download a dynamic version. If your system/computer supports 16-bit color, you should use the Q16 version (and an 8-bit version). The difference between the two is explained below.

For myself, a recent version cannot run well on my computer, so I am using some older versions, and the ImageMagick-6.4.2-7-Q16-windows-dll version is suitable for me. My computer is Windows XP SP2, 32 Bit, Intel Centrino 1.76 GHZ. you can download these old versions here.

We recommend that you use the latest version. follow the steps below. if it cannot be used properly, switch back to the old version.

2. Install ImageMagick

Install IM in the following Directory

The code is as follows:


C: \ imagemagick \

There is no space in the middle. Do not install it in c: \ program files \ etc

Never forget to click the "Add to system path" button. you don't have to worry about other selection buttons.

3. test whether the installation is successful.

Open the command line (run-> "CMD"-> Press enter), enter convert, and press enter. You should be able to see the help content. if so, you should go directly to step 4.

If "convert is not an internal or external command, it is neither a running program or a batch processing file "or prompts" Enter the drive letter for conversion "(convert is a default system command to convert FAT32 to NTFS) then you need to add the installation path of ImageMagick to the system path.

My computer-> right-click-> Properties-> Advanced-> environment variables-> System variables-> Find "Path"-> Select and click edit-> Install path.

4. download php_Imagick.dll

Due to version issues, if you use PHP 5.2.x, please here where you will get your to download the dll. Dyn = dynamic (dynamic), st = static (static), q16 = 16 bits (16 bits), q8 = 8 bits (8 bits ). Of course this should match the version you downloaded, if you download the q16 dynamic library, your corresponding file is php_imagick_dyn-Q16.dll

If you are using PHP 5.3.x, download the required version this is your location.

5. place dll in your Extension folder

For ease of use, rename the DLL file you downloaded as php_imagick.dll and place it in your Extension folder, which is usually:

The code is as follows:


Php/ext/

If not, you can find the extension directory in your php. ini file.

The code is as follows:


Directory in which the loadable extensions (modules) reside. extension_dir = "Something something"

6. edit PHP. ini.

If the following sentence exists, remove the comment directly. if the annotation does not exist, add the following sentence.

The code is as follows:


Extension = php_imagick.dll


7. restart

This is a very important step. it took me about an hour to fix it,... You need to restart your computer to take effect.

If you do not restart your computer but restart your apache, you will see an error that cannot load this module. Therefore, you must restart your computer.

The code is as follows:


Unable to find CORE_RL_Wand.dll something.

8. start apache and check the corresponding settings.

Start apache and check phpinfo (). If you see the imagick Library and the set value, go to step 9.

If you cannot use it normally after installation, you can change a few DLL files first. you can try another old version of ImageMagick. In short, don't be discouraged.

9. test it.

Then it will be OK. Below is the script

The code is as follows:


<?
$ Im = new imagick ('a.jpg ');
// Resize by 200 width and keep the ratio
$ Im-> thumbnailImage (200, 0 );
// Write to disk
$ Im-> writeImage ('a_thumbnail.jpg ');
?>

Http://www.bkjia.com/PHPjc/947929.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/947929.htmlTechArticlephp ImageMagick windows installation tutorial, phpimagemagick 1, download ImageMagick open the http://imagemagick.org/script/binary-releases.php#windows to download the latest version, the current version is...

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.