This class allows you to easily add a madlibs game to your website. You can load the madlib stories in via the file system or a database. The stories are chosen at random, and a
form will be shown to the user to fill in their own words. You can use a few css styles to control how things look (madlibTable, madlibTitle, madlibStory, and madlibWord).
This class will display a random product from your CafePress store. You can supply a simple template to control style, and have the output link directly to the shown product or
simply to your main account. You can cache the results so you don't have to connect to the CafePress website all the time. Images can also be cached locally, and can be resized
before caching.
This class allows you to crop an image in a variety of ways. You can crop in an absolute or relative way (to a certain size or by a certain size), both as a pixel number or a
percentage. You can also save or display the cropped image. The cropping can be done in 9 different positions: top left, top, top right, left, centre, right, bottom left,
bottom, or bottom right. Or you can automatically crop based on a threshold limit. The original image can be loaded from the file system or from a string (for example, data
returned from a database.) The script attempts to auto-detect the GD version, so you should be able to use GD 1.6 and on up.
This class allows you to very easily create thumbnails of images, on which you can also apply a drop-shadow effect. You can control the colour of the background so that
drop-shadow will fit better onto your page and the size of the thumbnail. You can resize in an absolute or relative way (to a certain size or by a certain size), both as a pixel
number or a percentage.
A helpful collection of image processing routines. Some convert between colour spaces and others process the image. This library makes it really easy to change the hue,
saturation, brightness, and colour of an image, as well as easily create html hx colour strings, or get the rgb value of a pixel, and more! Methods include: getGDVersion(),
getPixelRGB(), colourDistance(), hex2rgb(), rgb2hex(), rgb2hls(), hls2rgb(), rgb2hsv(), hsv2rgb(), greyscale(), threshold(), colourise() (also accessible as 'colorize') Full
details of these methods, and examples of use, can be found in the class comments.
This is a class allows you to apply a mask to an image much like you could do in PhotoShop, Gimp, or any other such image manipulation program. If the mask is smaller than the
image then the mask can be placed in various positions (top left, left, top right, left, centre, right, bottom left, bottom, bottom right) or the mask can be resized to the
dimensions of the image. Because of the nature of the class, masking large images may take some time!
This is an extension of the crop canvas class (http://www.zend.com/codex.php?id=1315&single=1) which provides an interactive cropping area for an image. Very easy to use and
implement drag & resizing GUI interface, built using JavaScript. All required files can be found at: http://php.amnuts.com/index.php?do=view&id=12
This class allows you to view man pages through a browser. The man page is formatted correctly, and includes highlighting and italics where appropriate. Email addresses can
automatically be rendered into clickable links. Not only can you enter the man page to view, but you can also list all man pages available on the system, or all man pages
starting with a certain alpha, numeric, or non-alphanumeric characters.
This class allows you to check to see if a particular website has been updated recently. It doesn't show what the changes were, just the fact that it's been altered in some way
since you last checked the site.