Linux installation ImageMagick and Imagick extensions

Source: Internet
Author: User

Installing with Commands

Run the following command in turn

Yum Install ImageMagick
Yum Install Imagemagick-devel
Yum Install Php-pear

The php-pear is installed to use the phpize in PECL

Yum-y Install Php-devel

2. Installing the C compiler

Yum Install GCC

If you can't install GCC, use this command:

Yum install gcc gcc-c++ autoconf automake

3. Installing Imagick

PECL Install Imagick

Prompts during installation:
Please provide the prefix of Imagemagick installation [AutoDetect]:
Note: It will require you to provide a ImageMagick installation prefix, which can be automatically detected by pressing the ENTER key.
4. Load Imagick to PHP
Find php.ini locations using Find/-name php.ini
In PHP.ini plus extension=imagick.so
5. Restart PHP-FPM and Nginx or Apache
6. Use Phpinfo () or run Php-m | grep Imagick to see if the installation was successful

7. Use the command convert-version to view the version

Convert-version

Linux installation ImageMagick and Imagick extensions

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.