Skip to content

Commit 582ee12

Browse files
author
Mitch
committed
Silence getimagesize() on string load, mainly for testingThis really needs to be rethought
1 parent 47b9d69 commit 582ee12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageResize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct($filename = null)
8686
*/
8787
public function loadFromString($imagedata)
8888
{
89-
$image_info = getimagesize('data://application/octet-stream;base64,' . base64_encode($imagedata));
89+
$image_info = @getimagesize('data://application/octet-stream;base64,' . base64_encode($imagedata));
9090

9191
if (!$image_info) {
9292
throw new \Exception('Could not load image from string');

0 commit comments

Comments
 (0)