In this tutorial, we will show you how to install ImageMagick on Fedora 37. For those of you who didn’t know, ImageMagick is a powerful command-line tool for manipulating images on a Linux system. It can read, convert and write images in a variety of formats, it offers image manipulation through the command line, as well as through programming languages such as C, C++, Perl, and PHP using the MagickWand API, it has the ability to handle a wide variety of image formats, it has a powerful command-line interface, it has a built-in library that can be used by other programs, and it is supported by many programming languages.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of ImageMagick on a Fedora 37.
Prerequisites
- A server running one of the following operating systems: Fedora 37.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for ImageMagick.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install ImageMagick on Fedora 37
Step 1. Before proceeding, update your Fedora operating system to make sure all existing packages are up to date. Use this command to update the server packages:
sudo dnf upgrade sudo dnf update sudo dnf install gcc clang make
Step 2. Installing ImageMagick on Fedora 37.
By default, the ImageMagick package doesn’t come in the default Fedora 37 repository. Now run the following command below to download the latest version of ImageMagick from the GitHub page to your Fedora system:
wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.0-57.tar.gz
Next, extract the downloaded file using the command:
tar xvzf 7.1.0-57.tar.gz cd ImageMagick-*.*
Finally, build and install ImageMagick using the following command below:
./configure make sudo make install
You can verify that ImageMagick is installed by running the following command in the terminal:
convert -version
Step 3. ImageMagick Terminal Commands.
ImageMagick is an open-source software suite that offers a wide range of command-line tools for manipulating images. Here is a table that lists some of the most commonly used ImageMagick commands and their usage:
Command | Description |
---|---|
convert | Convert an image from one format to another. |
mogrify | Modify an image, overwriting the original. |
montage | Create an image montage from multiple images. |
composite | Composite two images together. |
compare | Compare two images and highlight differences. |
identify | Display information about an image. |
animate | Animate an image or image sequence. |
stream | Stream processing of image data. |
display | Display an image on the screen. |
import | Capture an image from the screen. |
Congratulations! You have successfully installed ImageMagick. Thanks for using this tutorial for installing ImageMagick on your Fedora 37 system. For additional help or useful information, we recommend you check the official ImageMagick website.