diff --git a/src/Intervention/Image/Gd/Decoder.php b/src/Intervention/Image/Gd/Decoder.php index 313e6261..dbb9dce0 100644 --- a/src/Intervention/Image/Gd/Decoder.php +++ b/src/Intervention/Image/Gd/Decoder.php @@ -29,7 +29,10 @@ class Decoder extends \Intervention\Image\AbstractDecoder break; case IMAGETYPE_JPEG: - $core = @imagecreatefromjpeg($path); + $core = @imagecreatefromjpeg($path); + if (!$core) { + $core= @imagecreatefromstring(file_get_contents($path)); + } break; case IMAGETYPE_GIF: