1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 01:00:06 +02:00

Merge pull request #730 from karim-hza/patch-1

Use imagecreatefromstring when imagecreatefromjpeg fail
This commit is contained in:
Oliver Vogel
2017-06-03 20:33:13 +02:00
committed by GitHub

View File

@@ -30,6 +30,9 @@ class Decoder extends \Intervention\Image\AbstractDecoder
case IMAGETYPE_JPEG:
$core = @imagecreatefromjpeg($path);
if (!$core) {
$core= @imagecreatefromstring(file_get_contents($path));
}
break;
case IMAGETYPE_GIF: