Image manipulation with scripts (GD, ImageMagick, NetPBM)

You can manipulate images with your scripts by using GD, ImageMagick(Imagick), and NetPBM.

GD

PHP is compiled with GD support on all our servers. You can use it directly with your PHP scripts.

ImageMagick (Imagick)

You can enable the ImageMagick PHP extension for a domain/subdomain via the Control Panel -> PHP Settings section by following these steps:

  1. Click on the Manage button next to the domain/subdomain where you want to use ImageMagick.
  2. Check the box next to the ImageMagick extension from the Extensions section.
  3. Click on the Save changes button.

It can also be activated by manually adding the following line to a PHP configuration file (php.ini) in your account:

extension = imagick.so

Instructions on how to change PHP settings for your account are available in our Changing PHP settings article.

You can also use the ImageMagick binaries directly. They are located in this directory:

/usr/local/bin/

For example, the full paths to the convert and mogrify ImageMagick binaries are:

/usr/local/bin/convert
/usr/local/bin/mogrify

NetPBM

The path to the NetPBM binaries is:

/usr/local/netpbm/bin