We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71fee9c commit 24839e6Copy full SHA for 24839e6
src/PhpPresentation/Shape/Drawing/Gd.php
@@ -93,8 +93,8 @@ public function setImageResource($value = null)
93
94
if (null !== $this->imageResource) {
95
// Get width/height
96
- $this->width = imagesx($this->imageResource);
97
- $this->height = imagesy($this->imageResource);
+ $this->width = (int)@imagesx($this->imageResource);
+ $this->height = (int)@imagesy($this->imageResource);
98
}
99
100
return $this;
0 commit comments