Skip to content

Commit 683a80e

Browse files
committed
Merge pull request gumlet#33 from saschanos/master
reset original width and height
2 parents fd9cc21 + 24e1014 commit 683a80e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ImageResize.php

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public function __construct($filename)
8181

8282
case IMAGETYPE_JPEG:
8383
$this->source_image = $this->imageCreateJpegfromExif($filename);
84+
85+
// set new width and height for image, maybe it has changed
86+
$this->original_w = ImageSX($this->source_image);
87+
$this->original_h = ImageSY($this->source_image);
88+
8489
break;
8590

8691
case IMAGETYPE_PNG:

0 commit comments

Comments
 (0)