Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of installing ImageMagick and its php imagick extension under linux and windows

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what is the method of installing ImageMagick and its php imagick extension under linux and windows. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

First, you need to install two things, one is ImageMagick, and the other is the PHP extension imagick

Linux installation first install ImageMagick download ImageMagick installation package wget http://www.imagemagick.org/download/ImageMagick.tar.gz extract tar-xvfz ImageMagick.tar.gz enter the directory cd ImageMagick-7.0.10-28 to set the installation path. You will need to install the php extension later. / usr/local/imagemagick./configure-- prefix=/usr/local/imagemagick compilation make & & make installPHP imagick extension installation (step 2) official website address: pecl.php.net/package/imagick download imagick-3.4.4wget https://pecl.php.net/get/imagick-3.4.4.tgz decompression installation package tar-zxvf imagick-3.4.4.tgz enter the installation file cd imagick-3.4.4.tgz/ execute the phpize command / usr The directory of / local/php/bin/phpizeImageMagick 6.8 and above is / usr/local/include/ImageMagick-X Before configure, do the soft connection ln-s / usr/local/imagemagick/include/ImageMagick-7 / usr/local/imagemagick/include/ImageMagick to execute configure configuration. / configure-- with-php-config=/usr/local/php/bin/php-config-- with-imagick=/usr/local/imagemagick compile make & & make installphp.ini to be installed under imagick.soextensions=imagick.soWindows

Original text link

To download the extension, you need to know your PHP version. Check through phpinfo ().

The information in the red box will be used to download the imagemagick program later.

Address: http://windows.php.net/downloads/pecl/deps/

Download the corresponding version in this area. To choose the highest version, I need to download the 64-bit vc15

Install the imagemagick program to download this package and put it in any drive letter. Be careful that the path does not contain Chinese or special characters. I am the phpstudy integrated environment and put it in D:\ phpstudy_pro\ imagemagick. This can be placed at will. Then configure the environment variables. Refer to the following figure

Import DLL Fil

In the downloaded file, go to the bin directory. Then search .dll and copy all the files to the root directory of PHP.

Search-Select all-copy

Here are two download addresses for downloading the Imagick extension. If you can't use it, please look again.

Download address 1: http://windows.php.net/downloads/pecl/releases/imagick/

Download address 2: https://pecl.php.net/package/imagick

After decompressing, find the php_imagick.dll file at the bottom and copy it to the ext directory under the root directory of PHP.

Other .DLL files copy and paste all other .dll suffixes in the extracted imagick directory to the php root directory

Php.ini file and open edit to add the extension=php_imagick.dll line

Restart service so much about how to install ImageMagick and its php imagick extension under linux and windows. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report