Processed and scanned images will need support imagick, to install the following two before they can be used normally.
1. CentOS6.10 system to be installed: ImageMagick assembly
2. PHP To install: imagick extension
imagick is a PHP extension, provided by API ImageMagick to create and modify images, but these operations have been packed into the expansion imagick go, the final call is the API ImageMagick provided.
ImageMagick is a software family, is mainly used for picture creation, editing and conversion, detailed explanation, see ImageMagick's official website http://www.imagemagick.org/ , ImageMagick is much higher than the performance of GD, if it is in more able to reflect the performance of ImageMagick when dealing with a large number of pictures.
Two installation methods:
The first:
A, CentOS6.5 ImageMagick installation components:
#yum -y install ImageMagick ImageMagick-devel ImageMagick-perl
Second, install PHP extensions: imagick
#/usr/local/php/bin/pecl install imagick
It will automatically download and install the latest stable version.
Build process completed successfully
Installing '/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/imagick.so'
Installing '/usr/local/php/include/php/ext/imagick/php_imagick_shared.h'
install ok: channel://pecl.php.net/imagick-3.4.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini
And then manually add in php.ini:
extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/imagick.so"
The second: Source installed
A, CentOS6.10 ImageMagick installation components:
# Wget http://www.imagemagick.org/download/ImageMagick.tar.gz # Download ImageMagick
#tar -zxvf ImageMagick.tar.gz # decompression
#cd ImageMagick-6.7.9-3 # into the installation directory
#./configure --prefix=/usr/local/imagemagick #配置
#make # compiler
#make install # install
Second, install PHP extensions: imagick
This method can install your favorite imagick version, not necessarily the latest version, unlike the first method above, the default is to install the latest stable version imagick.
# Wget http://pecl.php.net/get/imagick-3.4.3.tgz # Download imagick
#tar -zxvf imagick-3.4.3.tgz
#cd imagick-3.4.3
# / Usr / local / php / bin / phpize # configure profile generated by phpize
#./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick #配置
#make # compiler
#make install # install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
Installing header files: /usr/local/php/include/php/
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini
And then manually add in php.ini:
extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/imagick.so"
Php to reload