Base de conhecimento
1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!
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, it is recommended to use 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 (through 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 para esta FAQ: https://faq.infomaniak.com/322
Esta seção de perguntas frequentes foi útil?