[ImageMagick] [sponsor]
Processing
Options
Usage
MagickWand
MagickCore
PerlMagick
Magick++
Unix
Windows
Unix
Mac OS X
Windows
Links

ImageMagick depends on a number of external resources including configuration files, loadable modules, fonts, and environment variables.

Configuration Files

ImageMagick depends on a number of external configuration files detailed here:

Under Unix and Linux, ImageMagick searches for each of the configuration files listed above by looking in the locations given below, in order, and loads them if found:

  $MAGICK_CONFIGURE_PATH
  $PREFIX/lib/ImageMagick-6.4.9/config
  $PREFIX/share/ImageMagick-6.4.9/config
  $PREFIX/share/ImageMagick-6.4.9
  $HOME/.magick/
  <client path>/lib/ImageMagick-6.4.9/
  <current directory>/

The environmental variable $PREFIX is the default install path (e.g. /usr/local). The client path is the execution path of your ImageMagick client (e.g. /usr/local) .

For the Unix or Linux pre-compiled binary distribution, the configuration load order is:

  $MAGICK_CONFIGURE_PATH
  $MAGICK_HOME/lib/ImageMagick-6.4.9/config
  $MAGICK_HOME/share/ImageMagick-6.4.9/config
  $PREFIX/share/ImageMagick-6.4.9
  $HOME/.magick/
  <client path>/lib/ImageMagick-6.4.9/
  <current directory>/

Under Windows, ImageMagick searches for these configuration files in the following order, and loads them if found:

  $MAGICK_CONFIGURE_PATH
  <windows registry>
  $PREFIX/config
  $USERPROFILE/.magick/
  <client path>
  <current directory>

Where $PREFIX is the default install path, typically c:\\Program Files\\ImageMagick-6.4.9.

For an uninstalled Windows installation, the configuration load order is:

  $MAGICK_CONFIGURE_PATH
  $MAGICK_HOME
  $USERPROFILE/.magick/
  client path
  <current directory>

If a configuration file cannot not be found, ImageMagick relies on built-in default values.

Modules

ImageMagick's image format support is usually provided in the form of loadable modules. It searches for loadable modules in the following order and it uses the first match found:

  <current directory>/
  $MAGICK_HOME/lib/ImageMagick-6.4.9/modules-Q16/coders/
  $HOME/.magick/
  <client path>/../lib/ImageMagick-6.4.9/modules-Q16/coders/
  $MAGICK_HOME/lib/ImageMagick-6.4.9/modules-Q16/coders
  $MAGICK_HOME/share/ImageMagick-6.4.9/modules-Q16/coders
  $HOME/.magick/
  <client path>/lib/ImageMagick-6.4.9/modules-Q16/coders
  <current directory>/

Fonts

ImageMagick is able to load raw TrueType and Postscript font files. It searches for the font configuration file, type.xml, in the following order, and loads them if found:

  $MAGICK_CONFIGURE_PATH
  $MAGICK_HOME/lib/ImageMagick-6.4.9/config
  $MAGICK_HOME/share/ImageMagick-6.4.9/config
  $HOME/.magick/
  <client path>/lib/ImageMagick-6.4.9/
  <current directory>/
  $MAGICK_FONT_PATH

Environment Variables

Environment variables recognized by ImageMagick include:

For convenience, ImageMagick environment variables can be defined in the configure.xml configuration file. For example, to set the preferred location to store temporary files, add this to the configuration file:

  <configure name="MAGICK_TEMPORARY_PATH" value="/data/tmp"/>