The graphics_gd class provides depage::graphics features using the PHP GD extension.
Definition at line 18 of file Gd.php.
|
| | render ($input, $output=null) |
| | Main method for image handling.
|
| | __construct ($options=array()) |
| | graphics class constructor
|
| | canRead ($ext) |
| | Checks if extension support reading file type.
|
| | canWrite ($ext) |
| | Checks if extension supports writing file type.
|
| | addBackground ($background) |
| | Background "action".
|
| | addCrop ($width, $height, $x=0, $y=0) |
| | Adds crop action.
|
| | addResize ($width, $height) |
| | Adds resize action.
|
| | addThumb ($width, $height) |
| | Adds thumb action.
|
| | addThumbfill ($width, $height, $centerX=50, $centerY=50) |
| | Adds thumb-fill action.
|
| | renderFinished () |
| | Called after rendering has finished.
|
| | optimizeImage ($filename) |
| | Opimizes final image through one of the optimization programs.
|
| | setQuality ($quality) |
| | Sets quality parameter.
|
| | getPageNumber () |
| | getPageNumber
|
|
| | crop ($width, $height, $x=0, $y=0) |
| | Crop action.
|
| | resize ($width, $height) |
| | Resize action.
|
| | thumb ($width, $height) |
| | Thumb action.
|
| | thumbfill ($width, $height, $centerX=50, $centerY=50) |
| | Thumb-Fill action.
|
| | load () |
| | Loads image from file.
|
| | save () |
| | Saves image to file.
|
| | getImageSize () |
| | Determine size of input image.
|
| | escapeNumber ($number) |
| | Validates integers.
|
| | dimensions ($width, $height) |
| | Scales image dimensions.
|
| | processQueue () |
| | Process action queue.
|
| | lock () |
| | lock
|
| | unlock () |
| | unlock
|
| | obtainFormat ($fileName) |
| | Determines image format from file extension.
|
| | getQuality () |
| | Returns quality-index for current image format.
|
| | bypassTest ($width, $height, $x=0, $y=0) |
| | Tests if action would change current image.
|
| | bypass () |
| | Runs bypass (copies file)
|