Is ImageMagick Installed on the Grid?

  • Applies to: Grid
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH


ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert, and write images in a variety of formats. The functionality of ImageMagick is typically utilized from the command-line or you can use the features from programs written in your favorite programming language.


Before you start, be sure to have these handy:


This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.

Advanced Support can help!

If you're having trouble with the steps in this article, additional assistance is available via Advanced Support, our premium services division. For more information on what Advanced Support can do for you, please click here.

System path

The following is the system path to ImageMagick:


You can find out which version is installed by logging into your Grid via SSH. For information on connecting via SSH, please read: Connecting via SSH to your server. The following command will return the version available:

convert -version

The output will look something like this:

Version: ImageMagick 6.2.4 09/16/06 Q16
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC


ImageMagick is installed on the Grid. However, the default settings for PHP5 will prevent it from being executed through a PHP script. To change this, the above path needs added to your open_basedir settings. If you are using a per-domain .htaccess configuration, simply add :/usr/bin/convert to the existing directive for any domain that needs to make use of it. If you would like to enable this for your entire Grid, add the following line to your php.ini file:

open_basedir = /nfs:/tmp:/usr/local:/etc/apache2/gs-bin:/usr/bin/convert


Was this article helpful?
0 out of 0 found this helpful