How to Install ImageMagick on Fedora 39/38/37 Linux

ImageMagick is a robust command-line utility designed for image manipulation on Linux systems. It offers a comprehensive suite of functionalities, from basic image editing tasks to more advanced operations. Whether you’re looking to convert image formats, resize photos, or apply intricate effects, ImageMagick is a tool that can cater to a wide range of requirements.

Key Features of ImageMagick:

  • Format Conversion: Seamlessly convert images between various formats, such as converting a JPG file to PNG.
  • Basic Editing: Perform fundamental image edits, including cropping and resizing.
  • Advanced Manipulations: Dive deeper with advanced operations like adding specific effects or overlaying text on images.
  • Extensive Format Support: ImageMagick supports many image formats, ensuring flexibility in handling different file types.
  • Large Image Handling: Efficiently manage and process large image files without compromising performance.

This guide will elucidate the installation process for those keen on integrating ImageMagick into their Fedora Linux environment. We’ll explore how to install ImageMagick on Fedora Linux via two methods: utilizing the DNF Repository for a straightforward installation or opting for a more hands-on approach by compiling from the Source Code.

Step 1: Update Fedora Before ImageMagick Installation

Before installing ImageMagick, it is recommended to ensure your system is up-to-date to prevent any potential issues. This can be done by running a system upgrade check to update all packages to their latest versions.

sudo dnf upgrade --refresh

Step 2: Select Installation Method for ImageMagick on Fedora

Method 1: Install ImageMagick with DNF Package Manager on Fedora

The DNF package manager is the default package manager for Fedora systems. To install ImageMagick using DNF, use the following terminal command.

sudo dnf install ImageMagick

This command will install the latest version of ImageMagick and its dependencies on your system. Once the installation is complete, you can verify the installation by running the command.

convert --version

This command will display the ImageMagick version currently installed on your system.

Method 2: Install ImageMagick from Source on Fedora

Another way to install ImageMagick on a Fedora system is to build it from the source. This method allows you to install a specific version of ImageMagick or customize the build options. To install ImageMagick from the source, follow these steps.

First, install the following dependencies.

sudo dnf install gcc clang make

Download the latest version of ImageMagick from the official GitHub. You need to go to GitHub to grab the link; the below command is just an example.


Extract the downloaded archive using the command:

tar xvzf <imagemagick archive>.tar.gz

Change to the extracted directory using the command:

cd ImageMagick-*.*

Configure the build using the command.


Build and install ImageMagick using the command.

sudo make install

Once the installation is complete, you can verify the installation by running the command.

convert -version
Screenshot of a successful compilation of ImageMagick on a Fedora Linux system.Pin
A snapshot capturing the triumphant moment of ImageMagick’s successful compilation on Fedora.

ImageMagick Terminal Commands

Below is a table of commands and tools that ImageMagick can use.

convertThe central command for image conversion and manipulation
mogrifyA command for modifying images in place without creating a new copy
identifyA command for displaying information about an image, such as format, dimensions, and color depth
compositeA command for combining two images into a single image
montageA command for creating a composite image by arranging multiple images in a grid
animateA command for creating an animation from a sequence of images
compareA command for comparing two images and highlighting differences between them
conjureA command for executing scripts written in the Magick Scripting Language (MSL)
streamA command for converting between image formats while streaming
displayA command for displaying images on the screen
importA command for capturing screenshots
mogrifyA command for modifying images in place without creating a new copy
magickA command for executing scripts written in the Magick Scripting Language (MSL)
magick-scriptA command for running scripts written in the Magick Scripting Language (MSL)
magick-script-commandA command for executing commands written in the Magick Scripting Language (MSL)

Note: These are some of the basic commands offered by ImageMagick. You can use many more commands to do more advanced manipulation, but the above commands are a good starting point to explore the functionality of ImageMagick.


In this article, we discussed two different methods for installing ImageMagick on a Fedora system – using the DNF package manager and building from source. Both methods are easy to follow and will quickly get you up and running with ImageMagick. With ImageMagick installed, you can now use its powerful command-line tools to manipulate images on your Fedora system.

For additional information, please visit the official ImageMagick website.

Share to...