Support / KnowledgeBase

 
Search the KnowledgeBase Search

Is ImageMagick installed on the (gs) Grid-Service?

  • Applies to: (gs)

  • Difficulty: Easy

  • Time needed: 10 minutes

  • Tools needed: SSH

 
  • Applies to: (gs)
    • 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.

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 (gs) Grid-Service 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 (gs) Grid-Service. 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 (gs) Grid-Service, add the following line to your php.ini file:

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

Resources


User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue