Image Magick On The Fly

This is a php script written by Gijs van Tulder, 1/17/04, and published on devpapers.com. The article explains how to use IM by calling it though a URL using just an image tag. For example,

<img src="http://yoursite.com/directory/file.php/image.jpg?resize(100x200!)">

will resize the image to 200x100!. Directory is the directory the script is placed in, the file.php is the php script, which can be named anything you want, image.jpg is the image in that directory which you want to manipulate, followed by the ?codes. To resize and shear you would add ?resize(200x100!)+shear(25x25) and so on using a plus sign for each additional function. You can read more about the script at the above site. I have copied the script from that site and have found the following variables/parameters for its use. You cannot use upper case letters in the variable, cannot use quotes or spaces, so not all IM commands can be used through this script.

You can copy the script from that site or Download it here

resize(200x100!)
background(aqua)+resize(200)+shear(15x25)
blur(10x10)
crop(+90+90)
implode(1)
flip(0)
background(red)+rotate(45)
swirl(500)
roll(+75+75)
type(gif)
background(yellow)+splice(20x20+0+0)+splice(20x20+170+170)
background(blue)+splice(20x20+0+0)+splice(20x20+170+170)+raise(20x20+5+5)
shave(44x45)
equalize(0)
level(20%,20%,1.0)
MORE SAMPLES