We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd9cc21 + 24e1014 commit 683a80eCopy full SHA for 683a80e
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