How To Install ImageMagick on CentOS 7

In this tutorial we learn how to install ImageMagick on CentOS 7. ImageMagick is An X application for displaying and manipulating images

Introduction

In this tutorial we learn how to install ImageMagick on CentOS 7.

What is ImageMagick

ImageMagick is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one. ImageMagick also includes command line programs for creating animated or transparent .gifs, creating composite images, creating thumbnail images, and more. ImageMagick is one of your choices if you need a program to manipulate and display images. If you want to develop your own applications which use ImageMagick code or APIs, you need to install ImageMagick-devel as well. ImageMagick is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one. ImageMagick also includes command line programs for creating animated or transparent .gifs, creating composite images, creating thumbnail images, and more. ImageMagick is one of your choices if you need a program to manipulate and display images. If you want to develop your own applications which use ImageMagick code or APIs, you need to install ImageMagick-devel as well.

We can use yum or dnf to install ImageMagick on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ImageMagick.

Install ImageMagick on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ImageMagick using yum by running the following command:

sudo yum -y install ImageMagick

Install ImageMagick on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ImageMagick using dnf by running the following command:

sudo dnf -y install ImageMagick

How To Uninstall ImageMagick on CentOS 7

To uninstall only the ImageMagick package we can use the following command:

sudo dnf remove ImageMagick

References

Summary

In this tutorial we learn how to install ImageMagick on CentOS 7 using yum and dnf.