KB / Web Programming / Do you support....? / ImageMagick
From DreamHost
We have ImageMagick installed on all our servers already! It's a great suite of little unix programs for letting you manipulate images in an automated fashion directly on our server! You'll need a shell account with us to use ImageMagick.
The path to ImageMagick is /usr/bin (the program usually used is actually called "convert", not imagemagick).
If you're using ImageMagick in php you have to run it as a php-cgi. All new domains at DreamHost are forced to run PHP as CGI as we no longer support mod_php, so this is no longer a concern.
Contents |
Parent Article
Online Image Manipulation with ImageMagic
Want a quick and easy way to change your image? Visit the ImageMagick studio:
http://www.imagemagick.net/MagickStudio/scripts/MagickStudio.cgi
At this site, you can upload images from your computer, a disk, or even your website, and change them on ImageMagick's own interactive website --- for free!
About Image Magick
ImageMagick is a free open-source program for creating and manipulating images in more than 68 formats (including GIF, JPEG, TIFF, PhotoCD, PDF, and PNG.) It runs on many popular operating systems including Linux, Unix, Windows (95/98 and 2000), MacIntosh, VMS, and OS2.
Once you have downloaded and installed ImageMagick on your computer, you can manipulate image files directly from the command line, or access the different manipulation methods through your favorite Perl, C, C++, or Java development environment.
Since ImageMagick creates images in most of the standard formats (and then some), feel free to use it to create images for your DreamHost site.
For more information about ImageMagick, go to their homepage:
Compiling ImageMagick on your DreamHost account
| The instructions provided in this article or section are considered advanced. You are expected to be knowledgeable in the UNIX shell. |
If you need ImageMagick features that are not found in the installed version (as of this writing yerba has version 6.3.0) compiling and installing it from source is a snap.
This will install ImageMagick into $HOME/local/bin
- 1) grab the source from http://imagemagick.net
~src$ wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
- 2) untar imagemagick into a src directory
~src$ tar zxvf <image_magick>.tar.gz
- 3) change to the imagemagick directory
~src$ cd ImageMagick<version>
- 4) configure and install
$ ./configure --prefix=$HOME/local --with-gslib --with-gs-font-dir=/usr/share/fonts/type1/gsfonts/ \
--with-perl-options=PREFIX=$HOME/perl
$ make
$ make install
Other advanced options can be found at http://imagemagick.net/script/advanced-unix-installation.php.
Note: On zim, the ./configure operation took about 2-3 minutes to complete during mid-day, whereas the make operation took about 30 minutes to execute.

