Public Member Functions |
| | __construct () |
| | __destruct () |
| | addImagetype ($ext) |
| | extractImageData ($imagePath) |
| | hasXssInfile ($fileName) |
Data Fields |
|
| $cur_dimensions = array( 'width' => 0, 'height' => 0 ) |
|
| $error = '' |
|
| $force_resize = false |
|
| $image_extension = '' |
Protected Member Functions |
| | _cleanPaths ($path='') |
| | _getResizeDimensions ($width, $height) |
| | _scaleImage ($arg) |
Protected Attributes |
|
| $image_file = '' |
|
| $image_full = '' |
|
| $image_path = '' |
|
| $image_types = array( 'gif', 'jpeg', 'jpg', 'jpe', 'png' ) |
|
| $orig_dimensions = array( 'width' => 0, 'height' => 0 ) |
Detailed Description
Constructor & Destructor Documentation
Image handler constructor
- Returns:
- oolean
Member Function Documentation
Cleans up paths, generates var $in_file_complete
- Parameters:
-
- Returns:
- string
Get new dimensions for resizing
- Parameters:
-
| integer | Maximum width |
| integer | Maximum height |
- Returns:
- array
Return proportionate image dimensions based on current and max dimension settings
- Parameters:
-
| array | [ cur_height, cur_width, max_width, max_height ] |
- Returns:
- array
Add a supported image type (assumes you have properly extended the class to add the support)
- Parameters:
-
| string | Image extension type to add support for |
- Returns:
- boolean
Checks to see if an uploaded image truly is an image
- Parameters:
-
- Returns:
- mixed
Checks for XSS inside file. If found, deletes file, sets error_no to 5 and returns
- Parameters:
-
- Returns:
- boolean
The documentation for this class was generated from the following file:
- ips_kernel/classImage.php