Skip to content

Commit

Permalink
Added minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszkrzaczkowski committed Mar 3, 2022
1 parent 4d85b0c commit d0391c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Objects/ImageStream.php
Expand Up @@ -75,7 +75,7 @@ protected function convertToJpg(string $imageData)
preg_match('/data:image\/[a-z]+;base64,(.*)/', $imageData, $matches);
$imageData = base64_decode($matches[1]);
}
$image = imagecreatefromstring($imageData);
$image = @imagecreatefromstring($imageData);
$bg = imagecreatetruecolor(imagesx($image), imagesy($image));
imagefill($bg, 0, 0, imagecolorallocate($bg, 255, 255, 255));
imagealphablending($bg, true);
Expand Down

0 comments on commit d0391c3

Please sign in to comment.