Home >Backend Development >PHP Tutorial >Install ImageMagick and php imagick extension under linux and windows
Recommended: "PHP Video Tutorial"
First of all, you need to install two things, one is ImageMagick and the other is the PHP extension imagick
Download the ImageMagick installation package
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -xvfz ImageMagick.tar.gz
cd ImageMagick-7.0.10-28
./configure --prefix=/usr/local/imagemagick
make && make install
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar -zxvf imagick-3.4.4.tgz
cd imagick-3.4.4.tgz/
/usr/local/php/bin/phpize
ln -s /usr/local/imagemagick/include/ImageMagick-7 /usr/local/imagemagick/include/ImageMagick
./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick
make && make install
extensions=imagick.so
D:\phpstudy_pro\imagemagick
. This can be placed arbitrarily. .dll
and copy all the files to the root directory of PHP.DLL
files in the ext directory will be the other .dll
suffixed files in the imagick
directory after decompression. Copy and paste all the files into the php root directory php.ini
file and open it for editing, add the line extension=php_imagick.dll
The above is the detailed content of Install ImageMagick and php imagick extension under linux and windows. For more information, please follow other related articles on the PHP Chinese website!