ImageMagick is an open-source image processing suite designed for creating, converting, editing, and manipulating digital images. It supports a wide range of image formats and provides a comprehensive collection of tools for performing various graphics operations from the command line. This tutorial shows how to install ImageMagick on Ubuntu 26.04.
Install ImageMagick
Run the following command to refresh the package lists:
sudo apt update
Install the ImageMagick:
sudo apt install -y imagemagick
Check the ImageMagick version to confirm that the setup was completed successfully:
magick --version
Testing ImageMagick
A simple test can be performed by generating an image file with a basic shape. The following command creates a transparent 500x500 pixel canvas and draws a red circle in the center:
magick -size 500x500 xc:none -fill red -draw 'circle 250,250 250,50' circle.png
After execution, a file named circle.png will appear in the current directory.
Uninstall ImageMagick
If ImageMagick is no longer needed, uninstall the package and clean up unused dependencies using the command:
sudo apt purge --autoremove -y imagemagick
Leave a Comment
Cancel reply