Graphics: Crop Canvas
Andrew Collington (contact me)
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!)
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Good (96.7%)
| Good (90.0%)
| -
| Good (83.3%)
| -
| -
| Sufficient (65.7%)
| 321 |
Click here for detailed information about this class on phpclasses.org