Hi in this post I am going to explain to you how we can Install ImageMagick 7 on our Linux server. For this blog post, I am using Digital Ocean server, We can use ImageMagick tool to work with Image like crop, add watermark on image and lot’s more operation we can perform using ImageMagick and we also use ImageMagick tool with PHP.

So without wasting any time, we can follow below simple steps to configure ImageMagick on our server.

Step 1. Login to your Digital Ocean Server using terminal/putty.

Step 2. Once login successfully go to the HTML directory

then we can download the latest release of ImageMagick tool using below command

Step 3. Unzip ImageMagick.tar.gz compressed file

Step 4. Move to ImageMagick folder in my case when I unzip the file

Step 5. Now run below commands one by one to configure ImageMagick

Above command will install all previously compiled ImageMagick binaries on your system. Run ldconfig to link static libraries:

Step 6. Move to HTML directory and run below command to check the version of ImageMagick

Step 7. Now we can install ImageMagick PHP extension you can run below command to do that

Now you are ready to use ImageMagick tool in your PHP application to check ImageMagick extension is installed check phpinfo file.

Hope this post help you to install ImageMagick in your server.