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 4180bc1 commit 42a8516Copy full SHA for 42a8516
src/ImageResize.php
@@ -81,6 +81,11 @@ public function __construct($filename)
81
82
case IMAGETYPE_JPEG:
83
$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
89
break;
90
91
case IMAGETYPE_PNG:
0 commit comments