File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* Handles thumb image(s) according to the original source given.
9
9
*/
10
- /**
11
- * Image Resize
12
- *
13
- * @package Eventviva
14
- */
15
10
class ImageResize
16
11
{
17
12
const cropTOP = 1 ;
@@ -68,7 +63,7 @@ public static function createFromString($imageData){
68
63
$ s ->loadFromString ($ imageData );
69
64
return $ s ;
70
65
}
71
-
66
+
72
67
/**
73
68
* Constructor
74
69
*
@@ -77,7 +72,7 @@ public static function createFromString($imageData){
77
72
*/
78
73
public function __construct ($ filename =null )
79
74
{
80
- if (!empty ($ filename )){
75
+ if (!empty ($ filename )) {
81
76
$ this ->load ($ filename );
82
77
}
83
78
}
@@ -118,11 +113,10 @@ public function loadFromString($imagedata)
118
113
}
119
114
120
115
/**
121
- * Load a file
122
- *
116
+ * Loads image source and its properties to the instanciated object
123
117
* @param string $filename
124
- * @return ImageResize
125
- * @throws \ Exception
118
+ * @return \static
119
+ * @throws Exception
126
120
*/
127
121
public function load ($ filename )
128
122
{
@@ -247,10 +241,9 @@ public function toString($image_type = null, $quality = null){
247
241
}
248
242
249
243
/**
250
- * Outputs image source to browser
251
- *
252
- * @param int $image_type
253
- * @param int $quality
244
+ * Outpus image source to browser
245
+ * @param string $image_type
246
+ * @param integer $quality
254
247
*/
255
248
public function output ($ image_type = null , $ quality = null )
256
249
{
You can’t perform that action at this time.
0 commit comments