This is a 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 have it automatically cropped based on a threshold value.
The original image can be loaded from the file system or from a string (for example, data returned from a database.)
It will also compensate so you can use GD versions 1.x or 2.x (though obviously 2.x will produce much better results!)