Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Install ImageMagick on CentOS Linux

November 10, 2022
in Blog, Linux
0
ADVERTISEMENT

Table of Contents

ImageMagick is a tool used for displaying, converting, and editing images.

Install required packages

First, install required packages. They include php-pear, php-devel, and gcc packages to compile the Imagick PHP extension. SSH to your CentOS server then run the following command:

sudo yum install php-pear php-devel gcc -y

Install ImageMagick

After installing ImageMagick’s dependencies packages we then install ImageMagick. For that, we use the below command.

sudo yum install ImageMagick ImageMagick-devel -y
# sudo yum list installed | grep Image
ImageMagick.x86_64               6.9.10.68-6.el7_9            @updates-openlogic
ImageMagick-devel.x86_64         6.9.10.68-6.el7_9            @updates-openlogic

Install ImageMagick PHP Extension

Once the installation of ImageMagick is completed, we can further install PHP extension. So that we can use it through PHP code. We use the below command for the installation.

pecl install imagick
...
Build process completed successfully
Installing '/usr/lib64/php/modules/imagick.so'
Installing '/usr/include/php/ext/imagick/php_imagick_shared.h'
install ok: channel://pecl.php.net/imagick-3.7.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini

It doesn’ t get over with this, you should also add extension=imagick.so to /etc/php.ini, that can be done with the help of the following command.

sudo echo 'extension=imagick.so' >> /etc/php.ini
# php -i | grep Imagick
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick => ImageMagick 6.9.10 x86_64 2021-10-14 https://imagemagick.org
Imagick using ImageMagick library => ImageMagick 6.9.10 x86_64 2021-10-14 https://imagemagick.org

As you can see, the warning of missing php extensions was gone.

ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Upgrade Symantec Endpoint Client Remotely from SEPM

Next Post

How to Reinstall or Upgrade PHP on CentOS7/RHEL7

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory