Skip to content

Commit

Permalink
Merge pull request #33 from saschanos/master
Browse files Browse the repository at this point in the history
reset original width and height
  • Loading branch information
adityapatadia committed Jan 6, 2016
2 parents fd9cc21 + 24e1014 commit 683a80e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public function __construct($filename)

case IMAGETYPE_JPEG:
$this->source_image = $this->imageCreateJpegfromExif($filename);

// set new width and height for image, maybe it has changed
$this->original_w = ImageSX($this->source_image);
$this->original_h = ImageSY($this->source_image);

break;

case IMAGETYPE_PNG:
Expand Down

0 comments on commit 683a80e

Please sign in to comment.