Install ImageMagick and PHPImagick extensions in CentOS

Source: Internet
Author: User
Download ImageMagick download underground is: downloads. jmagick. org6.4.0 we download: idea cdImageMagick-6.4.

Download ImageMagick download underground is: http://downloads.jmagick.org/6.4.0/ we download: ImageMagick-6.4.0-0.tar.gz wget http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz install ImageMagick tar zvxf ImageMagick-6.4.0-0.tar.gzcd ImageMagick-6.4.

Download ImageMagick

Download ground is: http://downloads.jmagick.org/6.4.0/

Download:
ImageMagick-6.4.0-0.tar.gz

wget http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz 

Install ImageMagick
tar zvxf ImageMagick-6.4.0-0.tar.gzcd ImageMagick-6.4.0-0./configure --prefix=/opt360/ImageMagick-6.4.0 --with-quantum-depth=8   --enable-share 

Configure parameter description:
-Enable-shared compiling into a shared library
-Disable-static: do not compile it into a static library
-Disable-openmp: multithreading is disabled. The performance of Multithreading is not improved, but the CPU usage reaches 100%, so it is disabled.
-With-quantum-depth = 8 uses 8-bit color depth. My 12 million-pixel Digital Camera emits 8-digit color depth.
-With-windows-font-dir = directory, indicating the directory of the font file (manually copy the Chinese font file to this directory)
Installation command:
makemake install 

Verify configuration:

identify -list configure 

Supported image formats:
identify -list format 

Last

pecl install imagick 

You need to add

extension=imagick.so 

Reactivate httpd
You can check phpinfo () to get imagick.

Original article address: The ImageMagick and PHP Imagick extensions are installed in CentOS. Thank you for sharing them with me.

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.