Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Classes/PHPExcel/Reader/Excel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down