Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Install ImageMagick and alternatives
This guide covers ImageMagick, a powerful software suite for image manipulation, available on Infomaniak's Web Hosting and Cloud Servers.
Simplified Installation: To install ImageMagick or its extensions, we recommend using Fast Installer from your Manager.
ImageMagick and image manipulation solutions
Several tools are available to process your visuals (resizing, conversion, watermarks):
- ImageMagick (CLI): the main suite usable via command line (via SSH); the modern command is
magick, but the old syntaxconvertis still available. - PHP Extension
imagick: this is the most common solution for websites (WordPress, etc.); it allows you to use ImageMagick directly in your PHP scripts. - GD Library: a lighter alternative, often pre-installed, ideal for simple manipulations (thumbnails, text on image).
- PerlMagick: dedicated interface for Perl scripts to access ImageMagick features.
Paths and Commands
On Infomaniak infrastructures, ImageMagick is installed by default. The executables are located in the following directory:
/usr/bin/Here are the main available commands:
| Command | Main Usage |
|---|---|
magick (or convert) | Convert, resize, and transform images. |
identify | Retrieve the metadata of a file (format, size, etc.). |
mogrify | Apply a modification directly to the original file. |
composite | Overlay multiple images (e.g., adding a logo as a watermark). |
To test the presence of the Perl module Image::Magick, you can use the following command:
perl -e 'use Image::Magick; print "Installed\n"';Link to this FAQ:
Has this FAQ been helpful?