File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class ImageResize
47
47
*/
48
48
public static function createFromFile ($ filename ){
49
49
$ s = new self ();
50
- $ s ->load ($ filename );
50
+ $ s ->loadFromFile ($ filename );
51
51
return $ s ;
52
52
}
53
53
@@ -72,8 +72,8 @@ public static function createFromString($imageData){
72
72
*/
73
73
public function __construct ($ filename = null )
74
74
{
75
- if (!empty ($ filename )) {
76
- $ this ->load ($ filename );
75
+ if (!empty ($ filename )) {
76
+ $ this ->loadFromFile ($ filename );
77
77
}
78
78
}
79
79
@@ -88,7 +88,7 @@ public function loadFromString($imagedata)
88
88
{
89
89
$ image_info = getimagesize ('data://application/octet-stream;base64, ' . base64_encode ($ imagedata ));
90
90
91
- if (!$ image_info ) {
91
+ if (!$ image_info ) {
92
92
throw new \Exception ('Could not load image from string ' );
93
93
}
94
94
@@ -119,7 +119,7 @@ public function loadFromString($imagedata)
119
119
* @return \static
120
120
* @throws Exception
121
121
*/
122
- public function load ($ filename )
122
+ public function loadFromFile ($ filename )
123
123
{
124
124
$ image_info = getimagesize ($ filename );
125
125
You can’t perform that action at this time.
0 commit comments