How to Install ImageMagick on Ubuntu 24.04

ImageMagick is a third-party utility for manipulating images, including creating, editing, and converting to other formats. It allows you to script and automate your tasks through the terminal. ImageMagick supports images in various formats, such as JPG, JPEG, GIF, and more.

Moreover, ImageMagick includes powerful built-in features like animation, color management, image rendering, and other functions. You can also join the ImageMagick community for technical assistance.

This detailed guide will explore and demonstrate how to download, install, and configure ImageMagick on the Ubuntu 24.04 system.

How to Install ImageMagick on Ubuntu 24.04?

This comprehensive blog will explore the following topics:

How to Download the Updated ImageMagick on the Ubuntu 24.04 system?

Here are the steps to download ImageMagick on the Ubuntu 24.04 machine.

Step 1: Update Ubuntu 24.04 System Files

Run the following command to check for the new updates and refresh your Ubuntu 24.04 system files:

Update Ubuntu 24.04 System Files

This step will enhance your Ubuntu 24.04 performance by updating its system files.

Step 2: Download ImageMagick’s Source File

To install ImageMagick from the source file (i.e. ImageMagick.tar.gz), first, you need to get the source file from ImageMagick’s official website: 

Update Ubuntu 24.04 System Files

The “wget” command stores the source file “ImageMagick.tar.gz” in your preferred location, such as ~/Downloads.

Note: To navigate to the Downloads folder, run this command:

Step 3: Extract the Source File “ImageMagick.tar.gz”

The TAR file can be extracted and made available for execution using the following command:

Extract the Source File “ImageMagick.tar.gz”

If the command executes successfully, you will see an empty output, which means that the source file was extracted successfully and is now ready for further configuration.

How to Configure ImageMagick on the Ubuntu 24.04 system?

To configure ImageMagick on your Ubuntu 24.04 system, follow these steps.

Step 1: Access “ImageMagick-7.1.1-34”

After successfully extracting the source file, you can now change your directory to access the ImageMagick source file with this command:

Extract the Source File “ImageMagick.tar.gz”

Make sure to enter the correct name of the source directory. For instance, in our case, the source file/directory name is “ImageMagick-7.1.1-34”.

Step 2: Configure ImageMagick

Execute the command “./configure” to configure the ImageMagick-7.1.1 on your Ubuntu 24.04 machine:

Configure ImageMagick
Configure ImageMagick

When the command runs, it builds an environment and configures ImageMagick-7.1.1 on your Ubuntu system.

Step 3: Compile ImageMagick Source File

After building the environment, run this command to compile the ImageMagick source file:

Compile ImageMagick Source File
Compile ImageMagick Source File

During the compilation of the source code, you will see the necessary files and libraries being configured.

Step 4: Install the Compiled Binaries/File

Next, install the compiled binaries and other necessary files using the command:

Install the Compiled Binaries/File
Install the Compiled Binaries/File

Step 5: Update Shared Library Cache

To complete the installation and configuration of ImageMagick, your system needs to update its cache of shared libraries:

Update Shared Library Cache

While installing from the source code, ImageMagick primarily installs its necessary libraries in “/usr/local/lib”, making it accessible on your Ubuntu 24.04 machine.

Step 6: Verify ImageMagick Version

After installing ImageMagick, run the given below command to check its installed version:

Update Shared Library Cache

The command prints the version of ImageMagick, such as 7.1.1-34, along with the information about its license, features, and compiler.

FAQs

How to install the updated release of ImageMagick on Ubuntu 24.04?

Always consider the official source to download any package on your operating system, such as Ubuntu 24.04. Use these steps to install ImageMagick:

  • Download the ImageMagick source file:

“wget https://imagemagick.org/archive/ImageMagick.tar.gz

  • Configure the files via the command: “./configure”.
  • Run the command to install the compiled binaries: “sudo make install”.

How to check the Installed version of ImageMagick on Ubuntu 24.04?

You can use the Ubuntu 24.04 terminal to check the installed version of ImageMagick. Here is the command: “magick -version”.

How to extract the source file of ImageMagick using the Ubuntu 24.04 terminal?

The ImageMagick source file, such as “ImageMagick.tar.gz” can be extracted through this simple command: “tar xzf ImageMagick.tar.gz”.

Conclusion

Install the latest release of ImageMagick from the source code on your Ubuntu 24.04 system. Start the installation process by downloading the ImageMagick source file, configure with “./configure” and then run the command “sudo make install” to install the compiled binaries on your Ubuntu system.

Scroll to Top