Is ImageMagick installed on the Grid?


Browse by products and services

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

Overview

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.

Requirements

Before you start, be sure to have these handy:

READ ME FIRST

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.

  ct-kb-1_1

CloudTech Can Help!
(mt) Media Temple offers software installations via CloudTech, our premium services division. To learn more, please click here.

System path

The following is the system path to ImageMagick:

/usr/bin/convert

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 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

Configuration

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

Resources