PHP GD extension interface.
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. More...
|
|
| __construct ($options=array()) |
| graphics class constructor More...
|
|
| addBackground ($background) |
| Background "action". More...
|
|
| addCrop ($width, $height, $x=0, $y=0) |
| Adds crop action. More...
|
|
| addResize ($width, $height) |
| Adds resize action. More...
|
|
| addThumb ($width, $height) |
| Adds thumb action. More...
|
|
| addThumbfill ($width, $height, $centerX=50, $centerY=50) |
| Adds thumb-fill action. More...
|
|
| render ($input, $output=null) |
| Main method for image handling. More...
|
|
| renderFinished () |
| Called after rendering has finished. More...
|
|
| optimizeImage ($filename) |
| Opimizes final image through one of the optimization programs. More...
|
|
| setQuality ($quality) |
| Sets quality parameter. More...
|
|
|
| crop ($width, $height, $x=0, $y=0) |
| Crop action. More...
|
|
| resize ($width, $height) |
| Resize action. More...
|
|
| thumb ($width, $height) |
| Thumb action. More...
|
|
| thumbfill ($width, $height, $centerX=50, $centerY=50) |
| Thumb-Fill action. More...
|
|
| load () |
| Loads image from file. More...
|
|
| save () |
| Saves image to file. More...
|
|
| getImageSize () |
| Determine size of input image. More...
|
|
| escapeNumber ($number) |
| Validates integers. More...
|
|
| dimensions ($width, $height) |
| Scales image dimensions. More...
|
|
| processQueue () |
| Process action queue. More...
|
|
| lock () |
| lock More...
|
|
| unlock () |
| unlock More...
|
|
| obtainFormat ($fileName) |
| Determines image format from file extension. More...
|
|
| getQuality () |
| Returns quality-index for current image format. More...
|
|
| bypassTest ($width, $height, $x=0, $y=0) |
| Tests if action would change current image. More...
|
|
| bypass () |
| Runs bypass (copies file) More...
|
|
render |
( |
|
$input, |
|
|
|
$output = null |
|
) |
| |
Main method for image handling.
Starts actions, saves image, calls bypass if necessary.
- Parameters
-
string | $input | input filename |
string | $output | output filename |
- Returns
- void
Reimplemented from Graphics.
Definition at line 216 of file Gd.php.