phMagick
is class can be used to perform image manipulation operations with the ImageMagick program. It calls the ImageMagick program passing parameters to process several types of operations on image files. Currently it can resize images, create thumbnails, darken or brighten images, adding watermarks, rotating, flipping, cropping, add a "polaroid look" to images, converting to grey scale and inverting colors, draw text and create thumbnails of pdf files and video.