diff --git a/Classes/PHPExcel/Reader/Excel5.php b/Classes/PHPExcel/Reader/Excel5.php index 62e971d2e..9cb6b01b5 100644 --- a/Classes/PHPExcel/Reader/Excel5.php +++ b/Classes/PHPExcel/Reader/Excel5.php @@ -1065,7 +1065,14 @@ public function load($pFilename) // need check because some blip types are not supported by Escher reader such as EMF if ($blip = $BSE->getBlip()) { - $ih = imagecreatefromstring($blip->getData()); + + // check if we can actually create the image... no support for bmp + try { + $ih = imagecreatefromstring($blip->getData()); + } catch (Exception $exception) { + break; + } + $drawing = new PHPExcel_Worksheet_MemoryDrawing(); $drawing->setImageResource($ih);