![]() |
Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Image manipulation class. More...
Public Member Functions | |
| getHeight () | |
| Gets image height. | |
| getWidth () | |
| Gets image width. | |
| load ($filepath) | |
| Loads an image. | |
| output ($image_type=IMAGETYPE_JPEG) | |
| Outputs directly the raw image stream. | |
| resize ($width, $height) | |
| Resizes the image to the given width and height. | |
| resizeToHeight ($height, $opts=null) | |
| Resizes the image at the given height. | |
| resizeToWidth ($width, $opts=null) | |
| Resizes the image at the given width. | |
| save ($filepath, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) | |
| Saves image to filepath. | |
| scale ($scale) | |
| Scales the image to the given percentage. | |
| type () | |
| Returns the file type. | |
Private Attributes | |
| $_image | |
| image identifier | |
| $_type | |
| image type | |
Image manipulation class.
Supported image types are jpg, png and gif
Definition at line 23 of file image.class.php.
| image::getHeight | ( | ) |
Gets image height.
Definition at line 118 of file image.class.php.
Here is the caller graph for this function:| image::getWidth | ( | ) |
Gets image width.
Definition at line 107 of file image.class.php.
Here is the caller graph for this function:| image::load | ( | $ | filepath | ) |
Loads an image.
| string | $filepath | image file path |
Definition at line 41 of file image.class.php.
| image::output | ( | $ | image_type = IMAGETYPE_JPEG | ) |
Outputs directly the raw image stream.
| mixed | $image_type | image type identifier, default IMAGETYPE_JPEG |
Definition at line 91 of file image.class.php.
| image::resize | ( | $ | width, |
| $ | height | ||
| ) |
Resizes the image to the given width and height.
| int | $width | image width |
| int | $height | image height |
Definition at line 198 of file image.class.php.
Here is the call graph for this function:
Here is the caller graph for this function:| image::resizeToHeight | ( | $ | height, |
| $ | opts = null |
||
| ) |
Resizes the image at the given height.
| int | $height | resizing height |
| mixed | $opts | Associative array of options:
|
Definition at line 133 of file image.class.php.
Here is the call graph for this function:| image::resizeToWidth | ( | $ | width, |
| $ | opts = null |
||
| ) |
Resizes the image at the given width.
| int | $width | resizing width |
| mixed | $opts | Associative array of options:
|
Definition at line 159 of file image.class.php.
Here is the call graph for this function:| image::save | ( | $ | filepath, |
| $ | image_type = IMAGETYPE_JPEG, |
||
| $ | compression = 75, |
||
| $ | permissions = null |
||
| ) |
Saves image to filepath.
| string | $filepath | image file path |
| mixed | $image_type | image type identifier, default IMAGETYPE_JPEG |
| int | $compression | image compression, deafult 75 |
| string | $permissions | file permissions |
Definition at line 72 of file image.class.php.
| image::scale | ( | $ | scale | ) |
Scales the image to the given percentage.
| int | $scale | scale percentage |
Definition at line 182 of file image.class.php.
Here is the call graph for this function:| image::type | ( | ) |
image::$_image [private] |
image identifier
Definition at line 28 of file image.class.php.
image::$_type [private] |
image type
Definition at line 33 of file image.class.php.