File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,6 @@ public function __construct($filename = null)
77
77
}
78
78
}
79
79
80
- /**
81
- * Get image size from string
82
- *
83
- * @param string $imagedata
84
- * @return array
85
- */
86
- protected function getImagesizeFromString ($ imagedata ){
87
- return @getimagesize ('data://application/octet-stream;base64, ' . base64_encode ($ imagedata ));
88
- }
89
-
90
80
/**
91
81
* Load image from string
92
82
*
@@ -96,7 +86,8 @@ protected function getImagesizeFromString($imagedata){
96
86
*/
97
87
public function loadFromString ($ imagedata )
98
88
{
99
- $ image_info = $ this ->getImagesizeFromString ($ imagedata );
89
+ $ image_info = getimagesize ('data://application/octet-stream;base64, ' . base64_encode ($ imagedata ));
90
+
100
91
if (!$ image_info ) {
101
92
throw new \Exception ('Could not load image from string ' );
102
93
}
You can’t perform that action at this time.
0 commit comments