How to Install ImageMagick on Fedora 40 or 39

ImageMagick is a powerful, feature-rich software suite for image editing, conversion, and creation. It supports various image formats, offering flexibility for various image processing tasks. ImageMagick is renowned for its versatility, enabling users to manipulate images in countless ways directly from the command line, which is particularly beneficial for batch processing or integration into scripts.

Key highlights of ImageMagick include:

  • Robust Format Support: It handles over 200 image formats, allowing conversion and processing without additional software.
  • Batch Processing: Automate tasks across multiple files, enhancing productivity and consistency.
  • Extensive Editing Capabilities: Resize, rotate, crop, and alter images with precision and ease.
  • Color Management: Comprehensive color management with ICC color profiles to ensure color accuracy across various devices.
  • Performance: Optimized for speed, ImageMagick utilizes multi-threading and hardware acceleration where possible.
  • Scriptable: Integrate with shell scripts or other programming languages for automated workflows.
  • Security: Configurable to restrict certain operations, helping mitigate potential security risks.

Understanding these features sets the stage for effectively harnessing ImageMagick’s capabilities in your system’s environment. Now, let’s delve into the technical steps to install ImageMagick on your Fedora 40 or 39 Linux system which we will demonstrate installing directly from the appstream repository or compiling the latest version.

Method 1: Install ImageMagick via DNF

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

Install ImageMagick via DNF Command

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

Confirm ImageMagick Installation via DNF

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 via source

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.

Install Initial Packages For ImageMagick Installation

First, install the following dependencies:

sudo dnf install gcc clang make

Download ImageMagick Archive

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

wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/x.x.x-x.tar.gz

Extract ImageMagick Archive

Extract the downloaded archive using the command:

tar xvzf <imagemagick archive>.tar.gz

Change to the extracted directory using the command:

cd ImageMagick-*.*

Configure, Build and Install ImageMagick Binary

Configure the build using the command.

./configure

Build and install ImageMagick using the command.

make
sudo make install

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

convert -version

ImageMagick Terminal Commands

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

CommandDefinition
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)

These are some of ImageMagick’s basic commands. You can use many more commands to perform more advanced manipulation, but the above commands are a good starting point for exploring its functionality.

Conclusion

We’ve walked through the steps to install ImageMagick on Fedora 40 or 39 Linux, showcasing how this powerful tool can elevate your image processing tasks. Remember, ImageMagick is your go-to solution whether you’re tweaking photos, converting formats, or automating editing workflows. Keep experimenting with its features to harness its potential. Don’t hesitate to dive into the community forums if you hit a snag or need some inspiration. Happy image manipulating!

Useful and Relevant Links

Here are some valuable links related to using ImageMagick:

Joshua James
Follow me

Leave a Comment


en_USEnglish