Base de Conhecimento

How to use ImageMagick

This article discusses how to use ImageMagick. ImageMagick is a complete suite of command-line programs for manipulating image files.

Using ImageMagick

ImageMagick is installed on all A2 Hosting shared servers, and includes the following programs:

  • convert
  • identify
  • mogrify
  • composite
  • montage
  • compare
  • stream
  • conjure

The full path to the ImageMagick binaries is /usr/bin or /usr/local/bin, depending on your server. On some servers, however, ImageMagick is installed in both locations. To determine which version is the most recent, you can type the following commands:

/usr/bin/convert -version /usr/local/bin/convert -version
There is also an ImageMagick PHP extension that you can use to manipulate image files within PHP. For information about how to enable PHP extensions in cPanel, please see this article.

More Information