Quoting ImageMagick.org, "ImageMagick... is a free software suite to create, edit, and compose bitmap images. It can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and BTzier curves can be added to images and stretched and rotated."
It is like the PHP GD Library but much more robust. It also produces nice thumbnails from JPEG images when the GD Library falls short.
This FAQ will get you started working with ImageMagick for PHP. First you need to verify with your host that ImageMagick is installed. Then you need to find out if your PHP installation is as an Apache module or as CGI (phpsuexec).
Step One: Make a .php file for the ImageMagick code.
Step Two: Make a subdirectory where that .php file is that will hold your test image. It needs to be writable (777 permissions) so you can write the new image to it.
Step Three: Put one of the following blocks of code on your PHP page, based on your installation type.
If your server has PHP installed as an Apache module then call ImageMagick like this: