ImageMagick is a popular open-source software that allows you to manipulate digital images in almost every way and supports more than 200 image formats!!
The chances that ImageMagick has already been installed on your Ubuntu system are pretty high as many other software use it as a dependency. Verify it with:
convert -version
Yes. ImageMagick is a CLI tool and it is used as convert, not imagemagick in the terminal. That’s where a lot of users make mistake.
If you see the “convert command not found” error, you can install ImageMagick using this command in Ubuntu:
sudo apt install imagemagick
But it may not give you the latest version. Let’s see how to get ImageMagick in detail and how to install the latest version from the source code.
Installing ImageMagick on Ubuntu
If getting the most recent version is not your primary concern, you can use the default repository of Ubuntu to install a bit older but comparatively more stable version than the most recent one.
Method 1: Install from software center (GUI method)
Open Ubuntu Software center.
sudo apt install imagemagick
convert -version
It should bring something similar to this:
To remove ImageMagick, use this command.
sudo apt remove imagemagick* -y
sudo apt install build-essential make git
Once you’re done with dependencies, you can proceed to the further part that involves downloading ImageMagick from Git.
git clone https://github.com/ImageMagick/ImageMagick.git
And change your working directory to ImageMagick:
cd ImageMagick