Thursday, April 10, 2008

ImageMagick: Install from Binary Distribution

ImageMagick: Install from Binary Distribution

Mac OS X Binary Release

We provide a Mac OS X binary distribution, however, if you already have MacPorts installed on your system, simply type:

  sudo port install ImageMagick

The port command downloads ImageMagick and many of its delegate libraries (e.g. JPEG, PNG, Freetype, etc.) and configures, builds, and installs ImageMagick automagically. Alternatively, download the ImageMagick Mac OS X distribution we provide:

Version HTTP FTP Description
ImageMagick-universal-apple-darwin8.11.0.tar.gz download download Mac OS X Tiger 10.4
ImageMagick-universal-apple-darwin9.2.2.tar.gz download download Mac OS X Leopard 10.5

Create (or choose) a directory to install the package into and change to that directory, for example:

  cd $HOME

Next, extract the contents of the package. For example:

  tar xvfz ImageMagick-universal-apple-darwin9.2.2.tar.gz

Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:

  export MAGICK_HOME="$HOME/ImageMagick-6.4.0"

If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:

  export PATH="$MAGICK_HOME/bin:$PATH"

Set the DYLD_LIBRARY_PATH environment variable:

  export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"

Finally, to verify ImageMagick is working properly, type the following on the command line:

  convert logo: logo.gif
identify logo.gif
display logo.gif

Note, the display program requires the X11 server available on your Mac OS X installation DVD.

Congratulations, you have a working ImageMagick distribution under Mac OS X and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.

No comments: