Skip to content

Commit 24839e6

Browse files
devX2712Progi1984
authored andcommitted
BUGFIX whe setting image ressource
Sometime when loading PPTX I've some error
1 parent 71fee9c commit 24839e6

File tree

1 file changed

+2
-2
lines changed
  • src/PhpPresentation/Shape/Drawing

1 file changed

+2
-2
lines changed

src/PhpPresentation/Shape/Drawing/Gd.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function setImageResource($value = null)
9393

9494
if (null !== $this->imageResource) {
9595
// Get width/height
96-
$this->width = imagesx($this->imageResource);
97-
$this->height = imagesy($this->imageResource);
96+
$this->width = (int)@imagesx($this->imageResource);
97+
$this->height = (int)@imagesy($this->imageResource);
9898
}
9999

100100
return $this;

0 commit comments

Comments
 (0)