A PHP IMagick Book is available online, and more examples of using IMagick can be found in Mikko's Blog. The only problem with IMagick is that is has not been maintained and upgraded, so there may be a number of functions that does not work or are missing. Be sure you are using v3.x of IMagick and a current version of IM.
The Imagick class has the ability to hold and operate on multiple images simultaneously. This is achieved through an internal stack. There is always an internal pointer that points at the current image. Some functions operate on all images in the Imagick class, but most operate only on the current image in the internal stack.
How do I test if the PHP PECL IMagick module is working?
To test if the PHP PECL Imagick module is actually working upload a simple test " image.jpg " image and this PHP script to the same web assessable directory. A PHP IMagick Book is available online, and more examples of using IMagick can be found in Mikko's Blog.
There is always an internal pointer that points at the current image. Some functions operate on all images in the Imagick class, but most operate only on the current image in the internal stack. As a convention, method names can contain the word Image to denote they affect only the current image in the stack.