File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -50,26 +50,15 @@ public static function createFromString($image_data)
50
50
$ resize = new self ('data://application/octet-stream;base64, ' . base64_encode ($ image_data ));
51
51
return $ resize ;
52
52
}
53
-
54
- /**
55
- * Constructor
56
- *
57
- * @param string|null $filename
58
- * @throws \Exception
59
- */
60
- public function __construct ($ filename )
61
- {
62
- $ this ->loadFromFile ($ filename );
63
- }
64
53
65
54
/**
66
55
* Loads image source and its properties to the instanciated object
67
56
*
68
57
* @param string $filename
69
- * @return \static
70
- * @throws Exception
58
+ * @return ImageResize
59
+ * @throws \ Exception
71
60
*/
72
- public function loadFromFile ($ filename )
61
+ public function __construct ($ filename )
73
62
{
74
63
$ image_info = @getimagesize ($ filename );
75
64
You can’t perform that action at this time.
0 commit comments